Hi!
I’m trying to implement a lowering of pytorch’s quantize_per_tensor [0] to TOSA.
quantize_per_tensor is specified [1] using round [2], which is specified to “round half to even”.
I seem to be unable to find a TOSA operator with “round half to even” behavior" (CAST seems to be “round toward zero”), so I cannot get an accurate lowering.
Any ideas?
Best wishes,
Matthias
[0] Sorry, can only put two links as a new user
[1] Quantization — PyTorch master documentation (glaringlee.github.io)
[2] torch.round — PyTorch 1.13 documentation