MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST_F

Function TEST_F

tensorflow/lite/kernels/space_to_batch_nd_test.cc:228–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226
227#ifdef GTEST_HAS_DEATH_TEST
228TEST_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
238TEST_F(QuantizedSpaceToBatchNDOpTest, SimplePaddingConstTestUint8) {

Callers

nothing calls this directly

Calls 5

DequantizedArrayNearFunction · 0.70
InvokeMethod · 0.45
GetOutputShapeMethod · 0.45
SetBlockShapeMethod · 0.45
SetPaddingsMethod · 0.45

Tested by

no test coverage detected