mindspore.ops.NonZero

class mindspore.ops.NonZero[source]
prim = ops.NonZero()
out = prim(input)

is equivalent to

ops.nonzero(input)

Refer to mindspore.ops.nonzero() for more details.