From 8b8124b57a91d9f5cd7342fd8eb51134dd00daa1 Mon Sep 17 00:00:00 2001 From: Jiangxinz Date: Mon, 19 Jul 2021 14:37:01 +0800 Subject: [PATCH] Fix func redef3 (#34184) * fix func redef * fix func redef * fix func redef --- .../tests/unittests/test_compare_reduce_op.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_compare_reduce_op.py b/python/paddle/fluid/tests/unittests/test_compare_reduce_op.py index 056d1687bbf..2da5b770d05 100644 --- a/python/paddle/fluid/tests/unittests/test_compare_reduce_op.py +++ b/python/paddle/fluid/tests/unittests/test_compare_reduce_op.py @@ -75,23 +75,6 @@ def create_test_equal_class(op_type, typename, callback): globals()[cls_name] = Cls -def create_test_dim1_class(op_type, typename, callback): - class Cls(op_test.OpTest): - def setUp(self): - x = y = np.random.random(size=(1)).astype(typename) - z = callback(x, y) - self.inputs = {'X': x, 'Y': y} - self.outputs = {'Out': z} - self.op_type = op_type - - def test_output(self): - self.check_output() - - cls_name = "{0}_{1}_{2}".format(op_type, typename, 'equal_all') - Cls.__name__ = cls_name - globals()[cls_name] = Cls - - def create_test_dim1_class(op_type, typename, callback): class Cls(op_test.OpTest): def setUp(self): -- GitLab