private resnextblock — function
resnextblock(inplanes, outplanes, cardinality, width, downsample = false)
Create a basic residual block as defined in the paper for ResNeXt (reference).
Arguments:
inplanes: the number of input feature mapsoutplanes: the number of output feature mapscardinality: the number of groups to use for the convolutionwidth: the number of feature maps in each group in the bottleneckdownsample: set totrueto downsample the input