diff --git a/python/paddle/fluid/contrib/mixed_precision/fp16_lists.py b/python/paddle/fluid/contrib/mixed_precision/fp16_lists.py index 44f8e5027fba8e4ed72a972bb2c050bdc52e072c..18f635ee8064cb5079b4b2e4d07ac4930b699613 100644 --- a/python/paddle/fluid/contrib/mixed_precision/fp16_lists.py +++ b/python/paddle/fluid/contrib/mixed_precision/fp16_lists.py @@ -14,7 +14,6 @@ import copy from ... import core -import paddle.fluid as fluid __all__ = ["CustomOpLists", "AutoMixedPrecisionLists"] @@ -154,7 +153,7 @@ gray_list = { # The set of ops that don't support fp16 calculation # lookup_table fp16 is slower than fp32, though fp16 is supported. _sys_unsupported_fp16_list = [] -if fluid.is_compiled_with_xpu(): +if core.is_compiled_with_xpu(): _, _, _sys_unsupported_fp16_list = core.op_supported_infos( 'XPU', core.VarDesc.VarType.FP16) else: