From 432c3a15d9337ee2ccec1c765827a9544295d715 Mon Sep 17 00:00:00 2001 From: channings Date: Wed, 4 Sep 2019 21:41:47 +0800 Subject: [PATCH] Update convert.py --- x2paddle/convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x2paddle/convert.py b/x2paddle/convert.py index c5e98bb..f1b1b12 100644 --- a/x2paddle/convert.py +++ b/x2paddle/convert.py @@ -114,11 +114,11 @@ def onnx2paddle(model_path, save_dir): import torch version = torch.__version__ if '1.1.0' not in version: - print("your model have dynamic graph, torch==1.1.0 is required") + print("torch==1.1.0 is required") return except: print( - "your model have dynamic graph, we use caffe2 to inference graph, please use \"pip install torch==1.1.0\"." + "we use caffe2 to inference graph, please use \"pip install torch==1.1.0\"." ) return print("Now translating model from onnx to paddle.") -- GitLab