未验证 提交 676d0b42 编写于 作者: R Ruibiao Chen 提交者: GitHub

Fix run inference bug for standalone executor (#44340)

上级 d881d690
......@@ -1404,10 +1404,14 @@ class Executor(object):
return False
# Unsupported case 3: data parallel
if program._is_data_parallel == True and len(
if program._is_data_parallel and len(
program._get_places(place, program._places)) != 1:
return False
# Unsupported case 4: inference
if program._is_inference:
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.
先完成此消息的编辑!
想要评论请 注册