private
basicblock
— function
basicblock(inplanes, outplanes, downsample = false)
Create a basic 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