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

If the computation load is too large, the operator execution may time out (AI Core error, errorStr: timeout or trap error). This occurs when the last two axes combined are less than 16 and the first axes combined are too large.

ONNX Opset Support

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