提交 d3d855fb 编写于 作者: Y Yang Yu

Fix unittest

上级 3008aab6
......@@ -28,4 +28,4 @@ class TestRegistry(unittest.TestCase):
exe = fluid.Executor(place)
X = np.random.random((10, 10)).astype("float32")
mean_out = exe.run(feed={"X": X}, fetch_list=[output])
self.assertAlmostEqual(np.mean(X), mean_out)
self.assertAlmostEqual(np.mean(X), mean_out[0])
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册