Skip to content

Commit

Permalink
support dcu in eager (#43371)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiabinYang authored Jun 13, 2022
1 parent a0d0bb6 commit ee60567
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/paddle/fluid/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee60567

Please sign in to comment.