tlopex commented on PR #19698: URL: https://github.com/apache/tvm/pull/19698#issuecomment-5629843542
Sorry for the late reply. Could we preserve the integer-division path when the explicit scale matches the integer output/input ratio? Disabling it for all explicit scales introduces a numerical regression. For input shape `(1, 1, 1, 411)`, scales `[1, 1, 1, 41]`, and `nearest/asymmetric/floor`, output index `16810` should read input index `410`. The reciprocal multiplication produces approximately `409.99997`, so it reads index `409` instead. I reproduced this with the C backend: the base revision matches ONNX Runtime, while this PR fails. Please retain exact integer indexing for this case. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
