提交 afda7ed7 编写于 作者: H Hui Zhang

remove useless code

上级 b20bf7d5
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册