From e7b3e139594d2dfc6d195614acc30b340d40fd88 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Mon, 7 Aug 2017 11:33:27 -0700 Subject: [PATCH] Rewrite test based on new python test format --- python/paddle/v2/framework/tests/test_fill_zeros_like_op.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/v2/framework/tests/test_fill_zeros_like_op.py b/python/paddle/v2/framework/tests/test_fill_zeros_like_op.py index 6e496f1be..e5c862605 100644 --- a/python/paddle/v2/framework/tests/test_fill_zeros_like_op.py +++ b/python/paddle/v2/framework/tests/test_fill_zeros_like_op.py @@ -8,8 +8,8 @@ class TestFillZerosLikeOp(unittest.TestCase): def setUp(self): self.type = "fill_zeros_like" - self.Src = numpy.random.random((219, 232)).astype("float32") - self.Dst = numpy.zeros_like(self.Src) + self.inputs = {'Src': numpy.random.random((219, 232)).astype("float32")} + self.outputs = {'Dst': numpy.zeros_like(self.inputs['Src'])} if __name__ == '__main__': -- GitLab