| 131 | } |
| 132 | |
| 133 | TEST(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 | // |
nothing calls this directly
no test coverage detected