.. _op_ai_onnx_Selu: Selu ==== - **Domain**: ``ai.onnx`` - **Since version**: 22 Selu takes one input data (Tensor ) and produces one output data (Tensor ) where the scaled exponential linear unit function, ``y = gamma * (alpha * e^x - alpha) for x 0``, is applied to the tensor elementwise. **Inputs** - **X** (*T*): Input tensor **Outputs** - **Y** (*T*): Output tensor **Attributes** - **alpha** (*float*): Coefficient of SELU default to 1.67326319217681884765625 (i.e., float32 approximation of 1.6732632423543772848170429916717). - **gamma** (*float*): Coefficient of SELU default to 1.05070102214813232421875 (i.e., float32 approximation of 1.0507009873554804934193349852946). **Type Constraints** - **T**: Constrain input and output types to float tensors. Allowed types: tensor(bfloat16), tensor(double), tensor(float), tensor(float16). Differences with previous version (6) ------------------------------------- **SchemaDiff**: ``Selu`` (domain ``'ai.onnx'``) * old version: 6 * new version: 22 * breaking: no **Type constraints:** * changed 'T': added types: ['tensor(bfloat16)'] Version History --------------- - :doc:`Version 6 ` - :doc:`Version 1 `