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