.. _op_ai_onnx_ThresholdedRelu: ThresholdedRelu =============== - **Domain**: ``ai.onnx`` - **Since version**: 22 ThresholdedRelu takes one input data (Tensor ) and produces one output data (Tensor ) where the rectified linear function, y = x for x > alpha, y = 0 otherwise, is applied to the tensor elementwise. **Inputs** - **X** (*T*): Input tensor **Outputs** - **Y** (*T*): Output tensor **Attributes** - **alpha** (*float*): Threshold value **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 (10) -------------------------------------- **SchemaDiff**: ``ThresholdedRelu`` (domain ``'ai.onnx'``) * old version: 10 * new version: 22 * breaking: no **Type constraints:** * changed 'T': added types: ['tensor(bfloat16)'] Version History --------------- - :doc:`Version 10 `