| 131 | } |
| 132 | |
| 133 | void TestZeroInput() { |
| 134 | Tensor input_tensor(DT_QUINT8, {1, 4, 4, 32}); |
| 135 | auto input = input_tensor.flat<quint8>(); |
| 136 | // Zero input, but input min > 0. Tests that output min and max should be |
| 137 | // properly separated. |
| 138 | input = input.setConstant(0); |
| 139 | |
| 140 | Expect(input_tensor, 2.0f, 3.0f, false, 0.0f, 0.0f); |
| 141 | } |
| 142 | |
| 143 | void TestMaxInput() { |
| 144 | Tensor input_tensor(DT_QUINT8, {1, 1, 2, 16}); |