From 805746a94984d56485a0083996bc0fd501646ed3 Mon Sep 17 00:00:00 2001 From: Wang Huan Date: Mon, 12 Oct 2020 03:20:23 +0000 Subject: [PATCH] add is_compiled_with_xpu for unit test, test=kunlun --- python/paddle/fluid/tests/unittests/test_load_op_xpu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/tests/unittests/test_load_op_xpu.py b/python/paddle/fluid/tests/unittests/test_load_op_xpu.py index 6891cd2b71a17..1d7f986507ca9 100644 --- a/python/paddle/fluid/tests/unittests/test_load_op_xpu.py +++ b/python/paddle/fluid/tests/unittests/test_load_op_xpu.py @@ -19,6 +19,7 @@ from op_test import OpTest, randomize_probability import paddle.fluid as fluid import paddle.fluid.layers as layers +import paddle @unittest.skipIf(not paddle.is_compiled_with_xpu(),