Class SqueezeExcitation

java.lang.Object
smile.deep.layer.LayerBlock
smile.vision.layer.SqueezeExcitation
All Implemented Interfaces:
Function<Tensor,Tensor>, Layer

public class SqueezeExcitation extends LayerBlock
Squeeze-and-Excitation block from "Squeeze-and-Excitation Networks".
  • Constructor Details

    • SqueezeExcitation

      public SqueezeExcitation(int inputChannels, int squeezeChannels)
      Constructor.
      Parameters:
      inputChannels - the number of channels in the input image.
      squeezeChannels - the number of squeeze channels.
    • SqueezeExcitation

      public SqueezeExcitation(int inputChannels, int squeezeChannels, ActivationFunction delta, ActivationFunction sigma)
      Constructor.
      Parameters:
      inputChannels - the number of channels in the input image.
      squeezeChannels - the number of squeeze channels.
      delta - the delta activation function.
      sigma - the sigma activation function.
  • 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.