Skip to content

Commit d3d855f

Browse files
committed
Fix unittest
1 parent 3008aab commit d3d855f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/v2/fluid/tests/test_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ def test_registry_layer(self):
2828
exe = fluid.Executor(place)
2929
X = np.random.random((10, 10)).astype("float32")
3030
mean_out = exe.run(feed={"X": X}, fetch_list=[output])
31-
self.assertAlmostEqual(np.mean(X), mean_out)
31+
self.assertAlmostEqual(np.mean(X), mean_out[0])

0 commit comments

Comments
 (0)