private invertedresidualv2function

invertedresidualv2(inplanes, outplanes, stride, expand_ratio)

Create a basic inverted residual block for MobileNetv2 (reference).

Arguments

  • inplanes: The number of input feature maps
  • outplanes: The number of output feature maps
  • stride: The stride of the convolutional layer, has to be either 1 or 2
  • expand_ratio: The ratio of the inner bottleneck feature maps over the input feature maps