Relu - version 13#

This page documents version 13 of operator Relu. See Relu for the latest version (since version 14).

  • Domain: ai.onnx

  • Since version: 13

Relu takes one input data (Tensor ) and produces one output data (Tensor ) where the rectified linear function, y = max(0, x), is applied to the tensor elementwise.

Inputs

  • X (T): Input tensor

Outputs

  • Y (T): Output tensor

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: Relu (domain 'ai.onnx')

  • old version: 6

  • new version: 13

  • breaking: no

Type constraints:

  • changed ‘T’: added types: [‘tensor(bfloat16)’]