未验证 提交 8eca2774 编写于 作者: W WJJ1995 提交者: GitHub

fixed make variable_name bug (#629)

* fixed name bug

* fixed name bug
上级 1d5bde56
...@@ -554,7 +554,7 @@ class ONNXDecoder(object): ...@@ -554,7 +554,7 @@ class ONNXDecoder(object):
""" """
if name == '': if name == '':
raise ValueError('name should not be empty') raise ValueError('name should not be empty')
for s in ' .*?\\/-:': for s in ' .*?\\/-:;':
name = name.replace(s, '_') name = name.replace(s, '_')
return 'x2paddle_' + name return 'x2paddle_' + name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册