Fix serving mind ir

Signed-off-by: zjun <zhangjun0@huawei.com>
This commit is contained in:
zjun 2022-08-23 09:54:40 +08:00
parent fc08ac5c47
commit 64f6cb401c
1 changed files with 1 additions and 0 deletions

View File

@ -404,6 +404,7 @@ GraphId GPUSession::CompileGraphImpl(NotNull<FuncGraphPtr> func_graph) {
// Insert maketuple graph output in case of multi-outputs.
// The ConvertTupleOutputToMaketuple pass will insert TupleGetItem.
AnfAlgo::InsertMakeTupleForOutput(NOT_NULL(root_graph));
SessionBasic::UnifyMindIR(root_graph);
opt::BackendCommonOptimization(root_graph);
return CompileGraphImpl(root_graph);
}