Neg - version 6#

This page documents version 6 of operator Neg. See Neg for the latest version (since version 13).

  • Domain: ai.onnx

  • Since version: 6

Neg takes one input data (Tensor ) and produces one output data (Tensor ) where each element flipped sign, y = -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 signed numeric tensors. Allowed types: tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8).

Differences with previous version (1)#

SchemaDiff: Neg (domain 'ai.onnx')

  • old version: 1

  • new version: 6

  • breaking: no

Type constraints:

  • changed ‘T’: added types: [‘tensor(int16)’, ‘tensor(int32)’, ‘tensor(int64)’, ‘tensor(int8)’]