未验证 提交 9718791c 编写于 作者: P pangyoki 提交者: GitHub

new executor support compiled_program._graph (#46025)

上级 13f4bbe8
...@@ -1570,12 +1570,6 @@ class Executor(object): ...@@ -1570,12 +1570,6 @@ class Executor(object):
compiled_program = program if isinstance( compiled_program = program if isinstance(
program, compiler.CompiledProgram) else program._graph program, compiler.CompiledProgram) else program._graph
# delete this code after supporting compiled_program._graph
if compiled_program._program is None:
warnings.warn("Standalone executor is not used for Graph",
UserWarning)
return use_standalone_executor_for_distribution
# delete this code after supporting distribution # delete this code after supporting distribution
if compiled_program._build_strategy is not None and ( if compiled_program._build_strategy is not None and (
compiled_program._build_strategy.is_distribution compiled_program._build_strategy.is_distribution
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册