From 87a6726b2fe8bf729fc19774e9d4173df0c5e9c9 Mon Sep 17 00:00:00 2001 From: "wangwenhua1@huawei.com" Date: Mon, 28 Dec 2020 12:36:27 +0800 Subject: [PATCH] display model info --- ge/offline/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/offline/main.cc b/ge/offline/main.cc index 02204e64..c067db91 100644 --- a/ge/offline/main.cc +++ b/ge/offline/main.cc @@ -844,7 +844,7 @@ domi::Status GenerateInfershapeJson() { static Status ConvertModelToJson(int fwk_type, const string &model_file, const string &json_file) { Status ret = ge::SUCCESS; if (fwk_type == -1) { - ret = ge::ConvertOmModelToJson(model_file.c_str(), json_file.c_str()); + ret = ge::ConvertOm(model_file.c_str(), json_file.c_str(), true); return ret; }