Raise runtime error for graph compiling failed

This commit is contained in:
yujianfeng 2021-07-21 20:08:04 +08:00
parent 615c977caa
commit 48087ad511
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)