remove useless code

pull/2425/head
Hui Zhang 2 years ago
parent b20bf7d5de
commit afda7ed7d1

@ -166,7 +166,6 @@ def broadcast_shape(shp1, shp2):
def masked_fill(xs: paddle.Tensor,
mask: paddle.Tensor,
value: Union[float, int]):
mask.stop_gradient = True
mask = mask.astype(xs.dtype)
return xs * (1.0 - mask) + mask * value

Loading…
Cancel
Save