プリンキピア

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

8.7. Densely Connected Networks (DenseNet)8.7 密結合ネットワーク(DenseNet)

ResNet significantly changed the view of how to parametrize the functions in deep networks. DenseNet (dense convolutional network) is to some extent the logical extension of this (Huang et al., 2017). DenseNet is characterized by both the connectivity pattern where each layer connects to all the preceding layers and the concatenation operation (rather than the addition operator in ResNet) to preserve and reuse features from earlier layers. To understand how to arrive at it, let’s take a small detour to mathematics.
英語のヒント
ResNetは、深いネットワークの関数をどうパラメータ化するかについての見方を大きく変えた。DenseNet(密な畳み込みネットワーク)は、ある程度、これを論理的に拡張したものである(Huang et al., 2017)。DenseNetを特徴づけるのは、各層がそれより前のすべての層とつながる接続パターンと、前の層の特徴量を保ち再利用するための(ResNetの加算の演算子ではなく)連結の演算の両方である。そこにどうたどり着くかを理解するため、少し数学に寄り道しよう。
import torch
from torch import nn
from d2l import torch as d2l