!20677 Raise runtime error for graph compiling failed

Merge pull request !20677 from YuJianfeng/clean
This commit is contained in:
i-robot 2021-07-22 11:47:13 +00:00 committed by Gitee
commit 3f4fa36085
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ class _Executor:
graph = self._executor.get_func_graph(phase)
if graph is None:
logger.error("%r graph compile failed.", phase)
raise RuntimeError("Compile graph failed for phase {}.".format(phase))
self._auto_parallel_process(obj, phase, is_sink_mode, auto_parallel_mode, *args)