提交 08b440c0 编写于 作者: Z zhaocai 提交者: jackzhang235

modify cnrt syble name:

上级 3b436c62
...@@ -130,9 +130,10 @@ class Graph { ...@@ -130,9 +130,10 @@ class Graph {
} }
void GenOfflineModel(const std::string& name) { void GenOfflineModel(const std::string& name) {
cnmlModel_t model; cnmlModel_t model;
const auto& symbol = "subnet0";
const auto& filename = name + ".offline.cambricon"; const auto& filename = name + ".offline.cambricon";
CNML_CALL(cnmlCreateModel(&model, name.c_str())); CNML_CALL(cnmlCreateModel(&model, filename.c_str()));
CNML_CALL(cnmlAddFusionOpToModel(model, fusion_op_, filename.c_str())); CNML_CALL(cnmlAddFusionOpToModel(model, fusion_op_, symbol.c_str()));
CNML_CALL(cnmlSaveModel(model, filename.c_str())); CNML_CALL(cnmlSaveModel(model, filename.c_str()));
CNML_CALL(cnmlDestroyModel(model)); CNML_CALL(cnmlDestroyModel(model));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册