mindspore.Tensor.masked_fill_

Tensor.masked_fill_(mask, value) Tensor[source]

In-place version of mindspore.Tensor.masked_fill().

Warning

Non-backward-compatible change after version 2.9.0: the return type will change from -> Tensor to in-place with no explicit return value.