> In that case min and max values passed into the quantized conv are always 0
> and 255.
Not true. When there is activation, the range is not always 0 ~ 255. For
example RELU,
```cpp
auto quantize = [scale, zero_point](float f) {
return zero_point + static_cast<int32_t>(TfLiteRound(f / scale));
};
*act_min = std::max(qmin, quantize(0.0));
*act_max = qmax;
```
We have proved that compute as this way and could make the result the same as
TFLite.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/dmlc/tvm/issues/2351#issuecomment-502532416