Skip to content

Commit 142b1c6

Browse files
[diff-train-patch] apply patch to op_fill_test (#12057)
1 parent 26049e3 commit 142b1c6

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

kernels/test/op_fill_test.cpp

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -168,27 +168,4 @@ TEST_F(OpFillTest, MismatchedOutputDtypeDies) {
168168
ET_EXPECT_KERNEL_FAILURE(context_, op_fill_scalar_out(self, 0.0, out));
169169
}
170170

171-
TEST_F(OpFillTest, ByteTensorTooLargeScalarDies) {
172-
// Cannot be represented by a uint8_t.
173-
expect_bad_scalar_value_dies<ScalarType::Byte>(256);
174-
}
175-
176-
TEST_F(OpFillTest, CharTensorTooSmallScalarDies) {
177-
// Cannot be represented by a int8_t.
178-
expect_bad_scalar_value_dies<ScalarType::Char>(-129);
179-
}
180-
181-
TEST_F(OpFillTest, ShortTensorTooLargeScalarDies) {
182-
// Cannot be represented by a int16_t.
183-
expect_bad_scalar_value_dies<ScalarType::Short>(32768);
184-
}
185-
186-
TEST_F(OpFillTest, FloatTensorTooSmallScalarDies) {
187-
// Cannot be represented by a float.
188-
expect_bad_scalar_value_dies<ScalarType::Float>(-3.41e+38);
189-
}
190-
191-
TEST_F(OpFillTest, FloatTensorTooLargeScalarDies) {
192-
// Cannot be represented by a float.
193-
expect_bad_scalar_value_dies<ScalarType::Float>(3.41e+38);
194-
}
171+
GENERATE_SCALAR_OVERFLOW_TESTS(OpFillTest)

0 commit comments

Comments
 (0)