提交 1d266c90 编写于 作者: J jiangjiajun

fix conficts

上级 95512480
...@@ -46,11 +46,10 @@ def export_onnx_model(model, save_dir): ...@@ -46,11 +46,10 @@ def export_onnx_model(model, save_dir):
from fluid_onnx.variables import paddle_variable_to_onnx_tensor, paddle_onnx_weight from fluid_onnx.variables import paddle_variable_to_onnx_tensor, paddle_onnx_weight
from debug.model_check import debug_model, Tracker from debug.model_check import debug_model, Tracker
except Exception as e: except Exception as e:
logging.error(e)
logging.error( logging.error(
"Import Module Failed! Please install paddle2onnx. Related requirements see https://github.com/PaddlePaddle/paddle2onnx." "Import Module Failed! Please install paddle2onnx. Related requirements see https://github.com/PaddlePaddle/paddle2onnx."
) )
sys.exit(-1) raise e
place = fluid.CPUPlace() place = fluid.CPUPlace()
exe = fluid.Executor(place) exe = fluid.Executor(place)
inference_scope = fluid.global_scope() inference_scope = fluid.global_scope()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册