mindspore.Tensor.masked_fill_

mindspore.Tensor.masked_fill_(mask, value) Tensor[源代码]

mindspore.Tensor.masked_fill() 的in-place版本。

警告

2.9.0(不含)之后版本非兼容性变更:返回值将由 -> Tensor 调整为无显式返回值(原地操作)。