Hi Vasiliy! Thank you so much for your help! These equations work for operating with a single number. But when I try to add numbers in quantized domain and then clamp according to formulas I still get very different result from pytorch implementation of

nn.quantized.FloatFunctional().add()

So it maybe some different issue than just clamping.
I’ve tried adding two numbers in float domain and still had no luck in reproducing add() behaviour.
Maybe you can help me to understand how this function works internally? Or maybe where I can find the source code implementing this function?