From 8eca27742a9b0d95472925288f73a11cf81b10f9 Mon Sep 17 00:00:00 2001 From: WJJ1995 Date: Fri, 25 Jun 2021 10:17:13 +0800 Subject: [PATCH] fixed make variable_name bug (#629) * fixed name bug * fixed name bug --- x2paddle/decoder/onnx_decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x2paddle/decoder/onnx_decoder.py b/x2paddle/decoder/onnx_decoder.py index 7a8fd37..a16f31d 100644 --- a/x2paddle/decoder/onnx_decoder.py +++ b/x2paddle/decoder/onnx_decoder.py @@ -554,7 +554,7 @@ class ONNXDecoder(object): """ if name == '': raise ValueError('name should not be empty') - for s in ' .*?\\/-:': + for s in ' .*?\\/-:;': name = name.replace(s, '_') return 'x2paddle_' + name -- GitLab