未验证 提交 e449f2aa 编写于 作者: 0 0x45f 提交者: GitHub

Use `self`as a parameter of _hash_with_id function to avoid error caused by hash_id reuse (#41200)

上级 533c649f
......@@ -99,7 +99,7 @@ class RunProgramOpTest(unittest.TestCase):
def prepare_attrs(self):
return ('global_block', self.program_desc.block(0), 'start_op_index', 0,
'end_op_index', self.fwd_op_num, 'program_id',
_hash_with_id(self.program_desc))
_hash_with_id(self.program_desc, self))
def get_param_grad_names(self):
grad_names = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册