Hi,
I have tried the following code
a=torch.tensor([3.0])
out=float_quantize(a,8,23,"nearest")
The output is printed as -3.0.
This happens only when the rounding is nearest .I am not able to understand why is this happening. Can you please explain me why is this happening, as I am missing something here.