private
invertedresidualv2
— function
invertedresidualv2(inplanes, outplanes, stride, expand_ratio)
Create a basic inverted residual block for MobileNetv2 (reference).
Arguments
inplanes
: The number of input feature mapsoutplanes
: The number of output feature mapsstride
: The stride of the convolutional layer, has to be either 1 or 2expand_ratio
: The ratio of the inner bottleneck feature maps over the input feature maps