Package smile.vision.layer
Class MBConv
java.lang.Object
smile.deep.layer.LayerBlock
smile.vision.layer.MBConv
Mobile inverted bottleneck convolution.
MBConv = expansion-conv1x1 + depthwise-conv3x3 + SENet + conv1x1 + add
-
Field Summary
Fields inherited from class smile.deep.layer.LayerBlock
device, dtype, module
-
Constructor Summary
ConstructorDescriptionMBConv
(MBConvConfig config, double stochasticDepthProb, IntFunction<Layer> normLayer) Constructor. -
Method Summary
Methods inherited from class smile.deep.layer.LayerBlock
add, add, asTorch, device, dtype, eval, isTraining, load, save, to, to, toString, train
-
Constructor Details
-
MBConv
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
Description copied from interface:Layer
Forward propagation (or forward pass) through the layer.- Parameters:
input
- the input tensor.- Returns:
- the output tensor.
-