| 226 | |
| 227 | #ifdef GTEST_HAS_DEATH_TEST |
| 228 | TEST_F(QuantizedSpaceToBatchNDOpTest, ZeroNotInQuantizationRange) { |
| 229 | // The test_util and actual quantization code currently ensure that the range |
| 230 | // must include zero, but if that ever changes, this test will catch it. |
| 231 | EXPECT_DEATH(SpaceToBatchNDOpConstModel m( |
| 232 | {TensorType_UINT8, {1, 2, 2, 1}, 1.0, 2.0}, {4, 2}, |
| 233 | {0, 0, 1, 1, 1, 1, 0, 0}, {TensorType_UINT8, {}, 1.0, 2.0}), |
| 234 | ".*Check failed: f_min <= 0.*"); |
| 235 | } |
| 236 | #endif |
| 237 | |
| 238 | TEST_F(QuantizedSpaceToBatchNDOpTest, SimplePaddingConstTestUint8) { |
nothing calls this directly
no test coverage detected