From 207e0f33c6ca36718c7e06317087d64e4ce9a302 Mon Sep 17 00:00:00 2001 From: wangshengxiang <121413869+shengxiangwang@users.noreply.github.com> Date: Fri, 28 Apr 2023 11:23:50 +0800 Subject: [PATCH] fix: fix deformable_conv_grad op test (#53415) --- cmake/external/xpu.cmake | 2 +- test/xpu/test_deformable_conv_op_xpu.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/external/xpu.cmake b/cmake/external/xpu.cmake index 65c02e1e520..6202d4edf04 100644 --- a/cmake/external/xpu.cmake +++ b/cmake/external/xpu.cmake @@ -8,7 +8,7 @@ set(XPU_API_LIB_NAME "libxpuapi.so") set(XPU_RT_LIB_NAME "libxpurt.so") set(XPU_XFT_LIB_NAME "libxft.so") -set(XPU_BASE_DATE "20230408") +set(XPU_BASE_DATE "20230427") set(XPU_XCCL_BASE_VERSION "1.0.13") set(XPU_XFT_BASE_VERSION "latest") diff --git a/test/xpu/test_deformable_conv_op_xpu.py b/test/xpu/test_deformable_conv_op_xpu.py index 8577cb24977..62d274fbc74 100644 --- a/test/xpu/test_deformable_conv_op_xpu.py +++ b/test/xpu/test_deformable_conv_op_xpu.py @@ -138,6 +138,8 @@ class XPUTestModulatedDeformableConvOp(XPUOpTestWrapper): class TestModulatedDeformableConvOp(XPUOpTest): def setUp(self): self.op_type = "deformable_conv" + # set to e-6 because of atomic add in XPU + self.epsilon_xpu2xpu = 0.000001 self.dtype = self.in_type self.place = paddle.XPUPlace(0) self.init_group() -- GitLab