Skip to content
heliaEDGE
Reference
HELIA

squeeze_excite

Machine-readable model

  • se_layerfunctionSqueeze & excite functional layer
function

se_layer

Python

Squeeze & excite functional layer

helia_edge/layers/squeeze_excite.py:6

se_layer(
ratio: int = 8,
name: str | None = None,
squeeze_activation: str | Callable = 'relu6',
excite_activation: str | Callable = 'hard_sigmoid',
) -> keras.Layer

Squeeze & excite functional layer

Implements Squeeze and Excite block as in Squeeze-and-Excitation Networks.

Parameters of se_layer
NameTypeDefaultDescription
ratioExpansion ratio8Expansion ratio. Defaults to 8.
namestr | NoneNoneBlock name. Defaults to None.
squeeze_activationstr | Callable'relu6'Squeeze activation. Defaults to "relu6".
excite_activationstr | Callable'hard_sigmoid'Excite activation. Defaults to "hard_sigmoid".
Returns of se_layer
TypeDescription
keras.Layerkeras.Layer: Functional SE layer