private bottleneck_v1 — function
bottleneck_v1(inplanes, outplanes, downsample = false)
Create a bottleneck residual block (reference). The bottleneck is composed of 3 convolutional layers with all a stride of 1 except the first convolutional layer which has a stride of 2.
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 totrueto downsample the input