NonZero

Description

Returns the index of a non-zero element (row-major order).

Input

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

Output

y: output tensor of type int64.

Constraints

None.

ONNX Opset Support

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