pytorch
91a51fe9 - [ONNX] Produce comprehensive assertion errors for quantized outputs (#87242)

Commit
2 years ago
[ONNX] Produce comprehensive assertion errors for quantized outputs (#87242) Fixes #83038 Currently _compare_ort_pytorch_outputs does not produce clearer error messages for differences in the zero point or scale of the two outputs. It also does not produce a clear error message for whether both are quantized. This pull request adds assertions to output whether the scales and zero points have differences, and whether each individual output is quantized. Pull Request resolved: https://github.com/pytorch/pytorch/pull/87242 Approved by: https://github.com/justinchuby, https://github.com/BowenBao
Author
Committer
Parents
Loading