From 1dc55942cd7db109ae1f80a14bbd3fa29e447f32 Mon Sep 17 00:00:00 2001 From: Leo Guo <58431564+ZibinGuo@users.noreply.github.com> Date: Mon, 11 Jul 2022 10:27:57 +0800 Subject: [PATCH] Update the latest dependence of KL-SDK in xpu.cmake and modify the code (#44158) style in test_iou_similarity_op_xpu.py. *test=kunlun --- cmake/external/xpu.cmake | 4 ++-- .../fluid/tests/unittests/xpu/test_iou_similarity_op_xpu.py | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/cmake/external/xpu.cmake b/cmake/external/xpu.cmake index d75af71203..c5eecef3ab 100644 --- a/cmake/external/xpu.cmake +++ b/cmake/external/xpu.cmake @@ -10,7 +10,7 @@ set(XPU_RT_LIB_NAME "libxpurt.so") if(NOT DEFINED XPU_BASE_URL) set(XPU_BASE_URL_WITHOUT_DATE "https://baidu-kunlun-product.cdn.bcebos.com/KL-SDK/klsdk-dev") - set(XPU_BASE_URL "${XPU_BASE_URL_WITHOUT_DATE}/20220703") + set(XPU_BASE_URL "${XPU_BASE_URL_WITHOUT_DATE}/20220706") else() set(XPU_BASE_URL "${XPU_BASE_URL}") endif() @@ -19,7 +19,7 @@ endif() if(NOT DEFINED XPU_XDNN_BASE_URL) set(XPU_XDNN_BASE_URL_WITHOUT_DATE "https://klx-sdk-release-public.su.bcebos.com/xdnn/dev") - set(XPU_XDNN_BASE_URL "${XPU_XDNN_BASE_URL_WITHOUT_DATE}/20220703") + set(XPU_XDNN_BASE_URL "${XPU_XDNN_BASE_URL_WITHOUT_DATE}/20220706") else() set(XPU_XDNN_BASE_URL "${XPU_XDNN_BASE_URL}") endif() diff --git a/python/paddle/fluid/tests/unittests/xpu/test_iou_similarity_op_xpu.py b/python/paddle/fluid/tests/unittests/xpu/test_iou_similarity_op_xpu.py index 56ad05505a..46e82c6832 100644 --- a/python/paddle/fluid/tests/unittests/xpu/test_iou_similarity_op_xpu.py +++ b/python/paddle/fluid/tests/unittests/xpu/test_iou_similarity_op_xpu.py @@ -13,11 +13,6 @@ # limitations under the License. from __future__ import print_function -import unittest -import sys - -sys.path.append("..") - import unittest import numpy as np import numpy.random as random -- GitLab