|
|
|
@@ -202,9 +202,9 @@ Status ParserGraphOptimizer::UpdateGraph(vector<NodePtr> &nodes) { |
|
|
|
"insert node to sub_graph failed."); |
|
|
|
GE_CHK_STATUS_RET(LinkInnerAnchor(node_map), "Link inner anchor failed."); |
|
|
|
|
|
|
|
std::unique_ptr<NodeDef> node_def = std::make_unique<NodeDef>(); // tensorflow NodeDef |
|
|
|
std::unique_ptr<NodeDef> node_def(new (std::nothrow) NodeDef()); // tensorflow NodeDef |
|
|
|
GE_CHECK_NOTNULL(node_def); |
|
|
|
std::unique_ptr<FunctionDefLibrary> func_def_lib = std::make_unique<FunctionDefLibrary>(); |
|
|
|
std::unique_ptr<FunctionDefLibrary> func_def_lib(new (std::nothrow) FunctionDefLibrary()); |
|
|
|
GE_CHECK_NOTNULL(func_def_lib); |
|
|
|
// convert graph to FunctionDef |
|
|
|
if (nodes.size() == 0) { |
|
|
|
|