Class MBConv

All Implemented Interfaces:
Function<Tensor,Tensor>, Layer

public class MBConv extends LayerBlock
Mobile inverted bottleneck convolution.

MBConv = expansion-conv1x1 + depthwise-conv3x3 + SENet + conv1x1 + add

  • Constructor Details

    • MBConv

      public MBConv(MBConvConfig config, double stochasticDepthProb, IntFunction<Layer> normLayer)
      Constructor.
      Parameters:
      config - block configuration.
      stochasticDepthProb - the probability of the input to be zeroed in stochastic depth layer.
      normLayer - the functor to create the normalization layer.
  • Method Details

    • forward

      public Tensor forward(Tensor input)
      Description copied from interface: Layer
      Forward propagation (or forward pass) through the layer.
      Parameters:
      input - the input tensor.
      Returns:
      the output tensor.