mindspore.Tensor.where

Tensor.where(condition, y) Tensor[source]

For details, please refer to mindspore.ops.where().

Warning

Non-backward-compatible change after version 2.9.0: parameter name y will be renamed to other.