forked from mindspore-Ecosystem/mindspore
dynamic shape attribute setting in hetero devices
This commit is contained in:
parent
59162dc2b1
commit
81bdf61126
|
@ -121,6 +121,9 @@ GraphId AscendSession::CompileGraphImpl(const AnfNodePtrList &lst, const AnfNode
|
|||
MS_LOG(INFO) << "Start";
|
||||
// construct graph, if successfully, graph_sum_ + 1
|
||||
auto graph = ConstructKernelGraph(lst, outputs);
|
||||
// Update Graph Dynamic Shape Attr
|
||||
UpdateGraphDynamicShapeAttr(NOT_NULL(graph));
|
||||
graph->UpdateGraphDynamicAttr();
|
||||
auto graph_id = graph->graph_id();
|
||||
MS_LOG(INFO) << "Compile graph " << graph_id << " success";
|
||||
return graph_id;
|
||||
|
|
Loading…
Reference in New Issue