diff --git a/x2paddle/convert.py b/x2paddle/convert.py index b20bde9ab0597f7b60010278d218d6a4f682622f..70c6db8063e338dd68bbd17e5a22d68231dbb7df 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")