private
bottleneck
— function
bottleneck(inplanes, outplanes, downsample = false)
Create a bottleneck residual block (reference).
Arguments:
inplanes
: the number of input feature mapsoutplanes
: a list of the number of output feature maps for each convolution within the residual blockdownsample
: set totrue
to downsample the input