!45222 fix spell error in lite CompileGraph

Merge pull request !45222 from xiaoyao/fix_error
This commit is contained in:
i-robot 2022-11-08 02:43:54 +00:00 committed by Gitee
commit eded85e2bb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ bool GeGraphExecutor::CompileGraph(const FuncGraphPtr &graph, const std::map<str
}
// opt::GeOptimization(origin_graph);
(void)BuildDFGraph(kg, GetParams(kg), false);
kernel_graph->set_run_mode(device::RunMode::kGraphMode);
kg->set_run_mode(device::RunMode::kGraphMode);
// copy init weight to device
RunGeInitGraph(kg);
return true;