提交 2fe35e33 编写于 作者: S seiriosPlus

fix UT

上级 f529675c
......@@ -94,8 +94,10 @@ class TestLookupTableFuseOp(unittest.TestCase):
training_program = fluid.Program()
scope.var('Beta1Pow').get_tensor().set([0], place)
scope.var('Beta2Pow').get_tensor().set([0], place)
scope.var('Beta1Pow').get_tensor().set(
np.array([0]).astype("float32"), place)
scope.var('Beta2Pow').get_tensor().set(
np.array([0]).astype("float32"), place)
rows = [0, 1, 2, 3, 4, 5, 6]
row_numel = 8
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册