Neg

Description

Returns the negative value of the input tensor element-wise.

Input

x: input tensor of type int8, float16, float, or int32.

Output

y: output tensor of the identical shape and data type as the input.

Constraints

None.

ONNX Opset Support

Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18.