未验证 提交 d5bdfaf1 编写于 作者: W Wilber 提交者: GitHub

fix decoding error when clip grad op. (#33919)

上级 93b53f86
......@@ -124,7 +124,7 @@ if __name__ == '__main__':
custom_pattern2 = custom_pattern2[:-1]
all_matches = []
with open(op_file, 'r') as f:
with open(op_file, 'r', encoding='utf-8') as f:
content = ''.join(f.readlines())
op, op_count = remove_grad_op_and_kernel(content, op_pattern1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册