From ee605673c10f5cad7cee00ba75c778ec6c9ebf6f Mon Sep 17 00:00:00 2001 From: Jiabin Yang <360788950@qq.com> Date: Mon, 13 Jun 2022 10:33:28 +0800 Subject: [PATCH] support dcu in eager (#43371) --- python/paddle/fluid/framework.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index a790feb9af2..44ef1ff5ae6 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -178,8 +178,7 @@ def _fallback_legacy_dygraph(): need_fallback = False # Only enable eager on CPU/GPU is_not_support = core.is_compiled_with_xpu() or core.is_compiled_with_npu( - ) or core.is_compiled_with_ipu() or core.is_compiled_with_mlu( - ) or core.is_compiled_with_rocm() + ) or core.is_compiled_with_ipu() or core.is_compiled_with_mlu() if _in_eager_mode_ and is_not_support: # switch into legacy dygraph mode -- GitLab