File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed
Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments