mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
Add unique identifier in function subgraph node (#129)
This commit is contained in:
parent
1beeccb89d
commit
e2a90ab747
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ FunctionImpl::FunctionImpl(const onnxruntime::Graph& graph,
|
|||
new_attr_map[attr.name()] = attr;
|
||||
}
|
||||
}
|
||||
sub_graph.AddNode(node.name(), node.op_type(), node.doc_string(), inputs, outputs, &new_attr_map, node.domain());
|
||||
sub_graph.AddNode(node.name() + "_" + std::to_string(node_index), node.op_type(), node.doc_string(), inputs, outputs, &new_attr_map, node.domain());
|
||||
}
|
||||
auto status = sub_graph.Resolve();
|
||||
ONNXRUNTIME_ENFORCE(status.IsOK());
|
||||
|
|
|
|||
Loading…
Reference in a new issue