未验证 提交 203a62b8 编写于 作者: V Vvsmile 提交者: GitHub

fix a bug which is triggered by the lack of __class__.op_type (#51101)

* fix a bug which is triggered by the lack of __class__.op_type

* remove two "self.__class__.op_type = self.op_type"
上级 e2054925
...@@ -1509,6 +1509,7 @@ class OpTest(unittest.TestCase): ...@@ -1509,6 +1509,7 @@ class OpTest(unittest.TestCase):
if prim_checker.is_only_check_prim(): if prim_checker.is_only_check_prim():
self.only_prim = True self.only_prim = True
return return
# disable legacy dygraph check when check_eager is True # disable legacy dygraph check when check_eager is True
if check_eager: if check_eager:
check_dygraph = False check_dygraph = False
...@@ -2102,6 +2103,7 @@ class OpTest(unittest.TestCase): ...@@ -2102,6 +2103,7 @@ class OpTest(unittest.TestCase):
self.check_compile_vs_runtime(fetch_list, outs) self.check_compile_vs_runtime(fetch_list, outs)
def check_output_customized(self, checker, custom_place=None): def check_output_customized(self, checker, custom_place=None):
self.__class__.op_type = self.op_type
places = self._get_places() places = self._get_places()
if custom_place: if custom_place:
places.append(custom_place) places.append(custom_place)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册