未验证 提交 218e759b 编写于 作者: W Weilong Wu 提交者: GitHub

[Eager] remove useless logic (#42020) (#42061)

上级 2f2f987c
......@@ -3661,9 +3661,7 @@ class TestBook(LayerTest):
shape=[1],
dtype='float32',
append_batch_size=False)
_scale = scale_var.numpy().item(0) if isinstance(
scale_var, core.eager.Tensor) else scale_var
out = layers.scale(input, scale=_scale)
out = layers.scale(input, scale=scale_var)
return out
def make_softshrink(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册