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

Function TEST

tensorflow/lite/kernels/internal/quantization_util_test.cc:133–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133TEST(QuantizationUtilTest, SafeCast) {
134 RunSafeCastTests<float, int8_t>();
135 RunSafeCastTests<double, int8_t>();
136 RunSafeCastTests<float, int16_t>();
137 RunSafeCastTests<double, int16_t>();
138 RunSafeCastTests<float, int32_t>();
139 RunSafeCastTests<double, int32_t>();
140 RunSafeCastTests<float, int64_t>();
141 RunSafeCastTests<double, int64_t>();
142 RunSafeCastTests<float, uint8_t>();
143 RunSafeCastTests<double, uint8_t>();
144 RunSafeCastTests<float, uint16_t>();
145 RunSafeCastTests<double, uint16_t>();
146 RunSafeCastTests<float, uint32_t>();
147 RunSafeCastTests<double, uint32_t>();
148 RunSafeCastTests<float, uint64_t>();
149 RunSafeCastTests<double, uint64_t>();
150}
151
152// Example taken from http://www.tensorflow.org/performance/quantization
153//

Callers

nothing calls this directly

Calls 15

EXPECT_DEATHFunction · 0.85
IntegerFrExpFunction · 0.85
isnanClass · 0.85
isfiniteClass · 0.85
IntegerDoubleMultiplyFunction · 0.85
IntegerDoubleCompareFunction · 0.85
PreprocessSoftmaxScalingFunction · 0.85
CalculateInputRadiusFunction · 0.85
QuantizeMultiplierArrayFunction · 0.85

Tested by

no test coverage detected