Skip to content

Commit 6057ef4

Browse files
authored
fix test_full_op.py (#1385)
1 parent 4862111 commit 6057ef4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

backends/npu/tests/unittests/test_full_op.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,12 @@ class TestFullOpError(unittest.TestCase):
147147
def test_errors(self):
148148
with program_guard(Program(), Program()):
149149
# for ci coverage
150+
# The argument dtype of full must be one of bool, float16,
151+
# float32, float64, uint8, int16, int32 or int64
150152
self.assertRaises(
151153
TypeError, paddle.full, shape=[1], fill_value=5, dtype="uint4"
152154
)
153155

154-
# The argument dtype of full must be one of bool, float16,
155-
# float32, float64, uint8, int16, int32 or int64
156-
157-
# The argument shape's type of full_op must be list, tuple or Variable.
158-
def test_shape_type():
159-
paddle.full(shape=1, dtype="float32", fill_value=1)
160-
161-
self.assertRaises(TypeError, test_shape_type)
162-
163156
# The shape dtype of full op must be int32 or int64.
164157
def test_shape_tensor_dtype():
165158
shape = paddle.static.data(

0 commit comments

Comments
 (0)