Zheng-Bicheng commented on PR #16653:
URL: https://github.com/apache/tvm/pull/16653#issuecomment-2020092045

   Hello,@leandron . I found in 
[cmsis.py](https://github.com/apache/tvm/blob/ff3716b83a72c2ff261c492f259e1fcd260600ce/python/tvm/relay/op/contrib/cmsisnn.py#L90)
 that the scale of softmax must be 1/256 and the zero point must be -128. Why 
is that? According to the formula Q(x_fp32, scale, zero_point) = 
round(x_fp32/scale) + zero_point, scale and zp should be adjustable (for 
example, in the case where scale is 1/128 and zp is 0, it should still meet the 
conditions for int8), right?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to