未验证 提交 3e82a794 编写于 作者: T taixiurong 提交者: GitHub

fix bug DLTP-31078 (#33877)

上级 521dd7eb
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册