Class SqueezeExcitation
java.lang.Object
smile.deep.layer.LayerBlock
smile.vision.layer.SqueezeExcitation
Squeeze-and-Excitation block from "Squeeze-and-Excitation Networks".
-
Field Summary
Fields inherited from class LayerBlock
device, dtype, module -
Constructor Summary
ConstructorsConstructorDescriptionSqueezeExcitation(int inputChannels, int squeezeChannels) Constructor.SqueezeExcitation(int inputChannels, int squeezeChannels, ActivationFunction delta, ActivationFunction sigma) Constructor. -
Method Summary
Methods inherited from class LayerBlock
add, add, asTorch, device, dtype, eval, isTraining, load, save, to, to, toString, train
-
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
-