プリンキピア

第8章現代の畳み込みニューラルネットワーク

8.6. Residual Networks (ResNet) and ResNeXt8.6 残差ネットワーク(ResNet)とResNeXt

As we design ever deeper networks it becomes imperative to understand how adding layers can increase the complexity and expressiveness of the network. Even more important is the ability to design networks where adding layers makes networks strictly more expressive rather than just different. To make some progress we need a bit of mathematics.
英語のヒント
いっそう深いネットワークを設計するにつれて、層を加えることがネットワークの複雑さと表現力をどう増やしうるかを理解することが欠かせなくなる。さらに重要なのは、層を加えることでネットワークが単に違うものになるのではなく、厳密により表現力の高いものになるようなネットワークを設計できることである。少し先へ進むには、少しばかり数学が必要になる。
import torch
from torch import nn
from torch.nn import functional as F
from d2l import torch as d2l