mindspore.Tensor.where

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

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