未验证 提交 7ee442c4 编写于 作者: P pangyoki 提交者: GitHub

new exe not support pg (#44628)

上级 eafd4280
......@@ -1398,20 +1398,26 @@ class Executor(object):
if program._program is None:
return False
# Unsupported case 2 : disabled by FLAGS_CONVERT_GRAPH_TO_PROGRAM
if os.environ.get('FLAGS_CONVERT_GRAPH_TO_PROGRAM',
None) not in [1, '1', True, 'True', 'true']:
return False
# Unsupported case 3: data parallel
# Unsupported case 2: data parallel
if program._is_data_parallel and len(
program._get_places(place, program._places)) != 1:
return False
# Unsupported case 3 : parallel graph
if core.globals()['FLAGS_enable_parallel_graph'] in [
1, '1', True, 'True', 'true'
]:
return False
# Unsupported case 4: inference
if program._is_inference:
return False
# Unsupported case 5 : disabled by FLAGS_CONVERT_GRAPH_TO_PROGRAM
if os.environ.get('FLAGS_CONVERT_GRAPH_TO_PROGRAM',
None) not in [1, '1', True, 'True', 'true']:
return False
return True
else:
if isinstance(program._graph, compiler.CompiledProgram):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册