mindspore.ops.MaskedSelect

class mindspore.ops.MaskedSelect[source]
prim = ops.MaskedSelect()
out = prim(input, mask)

is equivalent to

ops.masked_select(input, mask)

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