From 16c7f120b5d8c24c1ef8adfcb90d41eae60ef29e Mon Sep 17 00:00:00 2001 From: Channingss Date: Wed, 1 Jul 2020 06:56:02 +0000 Subject: [PATCH] fix bug --- x2paddle/convert.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/x2paddle/convert.py b/x2paddle/convert.py index b20bde9..70c6db8 100644 --- a/x2paddle/convert.py +++ b/x2paddle/convert.py @@ -194,22 +194,6 @@ def paddle2onnx(model_path, save_dir): mapper.convert(model.program, save_dir) -def paddle2onnx(model_path, save_dir): - from x2paddle.decoder.paddle_decoder import PaddleDecoder - from x2paddle.op_mapper.paddle_op_mapper import PaddleOpMapper - model = PaddleDecoder(model_path, '__model__', '__params__') - mapper = PaddleOpMapper() - mapper.convert(model.program, save_dir) - - -def paddle2onnx(model_path, save_dir): - from x2paddle.decoder.paddle_decoder import PaddleDecoder - from x2paddle.op_mapper.paddle_op_mapper import PaddleOpMapper - model = PaddleDecoder(model_path, '__model__', '__params__') - mapper = PaddleOpMapper() - mapper.convert(model.program, save_dir) - - def main(): if len(sys.argv) < 2: print("Use \"x2paddle -h\" to print the help information") -- GitLab