diff --git a/python/paddle/__init__.py b/python/paddle/__init__.py index 86fec30cb0aa637fe0acadadbed3712aab814cb0..b7e4fe9645b286a9555e138fa174537cdda9a52c 100755 --- a/python/paddle/__init__.py +++ b/python/paddle/__init__.py @@ -257,7 +257,7 @@ from .tensor.stat import numel #DEFINE_ALIAS from .device import get_cudnn_version from .device import set_device from .device import get_device -from .device import is_compiled_with_cuda +from .device import is_compiled_with_cuda #DEFINE_ALIAS from .device import is_compiled_with_xpu from .device import XPUPlace # from .tensor.tensor import Tensor #DEFINE_ALIAS diff --git a/python/paddle/device.py b/python/paddle/device.py index 48f6a4e8492b51bf5efab218fa0cf6e530631af3..c2f331caa8ab3e338d7d1148a15c1de1309aec34 100644 --- a/python/paddle/device.py +++ b/python/paddle/device.py @@ -18,7 +18,7 @@ import re from paddle.fluid import core from paddle.fluid import framework from paddle.fluid.dygraph.parallel import ParallelEnv -from paddle.fluid.framework import is_compiled_with_cuda +from paddle.fluid.framework import is_compiled_with_cuda #DEFINE_ALIAS __all__ = [ 'get_cudnn_version',