Abs

Description

Returns the absolute value of the input tensor. The absolute value y = abs (x) is applied to the tensor element.

Input

x: tensor of type float, float16, int8, int16, int64, or int32. The data format can be ND.

Output

y: output tensor of the identical data type and shape as the input. The data format can be ND.

Constraints

Excessive computation load may cause the operator to time out (AI Core error, errorStr: "timeout or trap error"). This typically occurs when the product of the last two dimensions is less than 16 while the product of the leading dimensions is excessively large.

ONNX Opset Support

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