mindspore.Tensor.where

mindspore.Tensor.where(condition, y)

详情请参考 mindspore.ops.where()