From 4c5f5d60cf9fc3385374a42929eca24c6b19ca30 Mon Sep 17 00:00:00 2001 From: ronnywang Date: Thu, 22 Sep 2022 10:25:08 +0800 Subject: [PATCH] [CustomDevice] use interpreter_core (#46336) --- python/paddle/fluid/executor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 58baf0928d9..677ce181620 100755 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -1555,8 +1555,7 @@ class Executor(object): program = pruned_program def _can_use_interpreter_core(program, place): - if core.is_compiled_with_mlu() or isinstance( - place, core.CustomPlace): + if core.is_compiled_with_mlu(): return False use_standalone_executor_for_distribution = os.environ.get( -- GitLab