提交 77ef790f 编写于 作者: F fary86

Fix bug of can not find opadapter

上级 48e54dcf
......@@ -425,9 +425,8 @@ OpAdapterPtr DfGraphConvertor::FindAdapter(const AnfNodePtr node, bool train) {
auto it_adpt = get_adpt_map().find(name);
if (it_adpt != get_adpt_map().end()) {
return it_adpt->second->Get(train);
} else {
MS_LOG(ERROR) << "Can't find OpAdapter for " << name;
}
MS_LOG(EXCEPTION) << "Can't find OpAdapter for " << name;
}
if (node->isa<ValueNode>()) {
......@@ -517,8 +516,7 @@ OpAdapterPtr DfGraphConvertor::FindAdapter(const std::string &name, bool train)
if (it != get_adpt_map().end()) {
return it->second->Get(train);
}
MS_LOG(ERROR) << "Can't find OpAdapter for " << name;
return transform::OpAdapterPtr(nullptr);
MS_LOG(EXCEPTION) << "Can't find OpAdapter for " << name;
}
void DfGraphConvertor::DrawParamInitSubGraph(const std::string &name, const AnfNodePtr &it) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册