Squeeze-Excitation#
eqxvision.layers.SqueezeExcitation
#
A simple port of torchvision.ops.misc.SqueezeExcitation
__init__(self, input_channels: int, squeeze_channels: int, activation: Callable = None, scale_activation: Callable = None, *, key: jax.random.PRNGKey = None)
#
Arguments:
input_channels: Number of channels in the input imagesqueeze_channels: Number of squeeze channelsactivation:deltaactivation. Defaults tojax.nn.reluscale_activation:sigma`` activation. Defaults tojax.nn.sigmoid`key: Ajax.random.PRNGKeyused to provide randomness for parameter initialisation. (Keyword only argument.)
__call__(self, x, *, key: Optional[jax.random.PRNGKey] = None) -> Array
#
Arguments:
x: The inputJAXarraykey: Forwarded to individualeqx.Moduleattributes