From 3e82a79491eb834d65f22794a40e530207754326 Mon Sep 17 00:00:00 2001 From: taixiurong Date: Thu, 1 Jul 2021 13:31:21 +0800 Subject: [PATCH] fix bug DLTP-31078 (#33877) --- python/paddle/fluid/contrib/mixed_precision/fp16_lists.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/fluid/contrib/mixed_precision/fp16_lists.py b/python/paddle/fluid/contrib/mixed_precision/fp16_lists.py index 44f8e5027fb..18f635ee806 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: -- GitLab