PRelu - version 6#

This page documents version 6 of operator PRelu. See PRelu for the latest version (since version 16).

  • Domain: ai.onnx

  • Since version: 6

PRelu takes input data (Tensor ) and slope tensor as input, and produces one output data (Tensor ) where the function f(x) = slope * x for x  = 0., is applied to the data tensor elementwise.

Inputs

  • X (T): Input tensor

  • slope (T): Slope tensor. If Slope is of size 1, the value is sharedacross different channels

Outputs

  • Y (T): Output tensor

Type Constraints

  • T: Constrain input and output types to float tensors. Allowed types: tensor(double), tensor(float), tensor(float16).

Differences with previous version (1)#

SchemaDiff: PRelu (domain 'ai.onnx')

  • old version: 1

  • new version: 6

  • breaking: yes

Breaking reasons:

  • attribute ‘consumed_inputs’ (removed): type=INTS; required=False

Attributes:

  • [BREAKING] removed ‘consumed_inputs’: type=INTS; required=False