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(),