From 2098c283086fdb6c4a7da9c312a145a3d9a5b6be Mon Sep 17 00:00:00 2001 From: houj04 <35131887+houj04@users.noreply.github.com> Date: Wed, 4 Jan 2023 20:58:14 +0800 Subject: [PATCH] [XPU] fix clip op unit test. (#49535) --- python/paddle/fluid/tests/unittests/xpu/test_clip_op_xpu.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/xpu/test_clip_op_xpu.py b/python/paddle/fluid/tests/unittests/xpu/test_clip_op_xpu.py index e4982c42e4..075ff7f7e8 100644 --- a/python/paddle/fluid/tests/unittests/xpu/test_clip_op_xpu.py +++ b/python/paddle/fluid/tests/unittests/xpu/test_clip_op_xpu.py @@ -134,12 +134,6 @@ class TestClipOpError(unittest.TestCase): paddle.clip(x=input_data, min=-1.0, max=1.0) self.assertRaises(TypeError, test_Variable) - - def test_dtype(): - x2 = fluid.layers.data(name='x2', shape=[1], dtype='int32') - paddle.clip(x=x2, min=-1.0, max=1.0) - - self.assertRaises(TypeError, test_dtype) paddle.disable_static() -- GitLab