| 139 | }; |
| 140 | |
| 141 | TEST_F(QuantOpsTest, WithArgsSymmetricRangeZeroInput_RegularRange) { |
| 142 | // Original quantization range: [-10, 10], scale: 20/255. |
| 143 | // Original zero point: 127.5, nudged zero point 128.0. |
| 144 | // Expected quantized values: 0.0. |
| 145 | RunTestFakeQuantWithMinMaxArgs(8, false, -10.0f, 10.0f, TensorShape({2, 3}), |
| 146 | {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, |
| 147 | {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, 0.0, |
| 148 | 0.0); |
| 149 | } |
| 150 | |
| 151 | TEST_F(QuantOpsTest, WithArgsSymmetricRangeZeroInput_NarrowRange) { |
| 152 | // Original quantization range: [-10, 10], scale: 20/254. |
nothing calls this directly
no test coverage detected