Package smile.vision.layer
Class SqueezeExcitation
java.lang.Object
smile.deep.layer.LayerBlock
smile.vision.layer.SqueezeExcitation
Squeeze-and-Excitation block from "Squeeze-and-Excitation Networks".
-
Constructor Summary
ConstructorDescriptionSqueezeExcitation
(int inputChannels, int squeezeChannels) Constructor.SqueezeExcitation
(int inputChannels, int squeezeChannels, ActivationFunction delta, ActivationFunction sigma) Constructor. -
Method Summary
Methods inherited from class smile.deep.layer.LayerBlock
add, add, asTorch, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface smile.deep.layer.Layer
apply, isTraining
-
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
Description copied from interface:Layer
Forward propagation (or forward pass) through the layer.- Parameters:
input
- the input tensor.- Returns:
- the output tensor.
-