torch.Tensor.masked_fill(mask, value)
paddle.Tensor.masked_fill(mask, value, name=None)
两者功能一致,参数完全一致,具体如下: