pytorch
41e21898 - [quant] Remove reference representation rewrite for adaptive_avg_pool2d (#108924)

Comment changes are shownComment changes are hidden
Commit
1 year ago
[quant] Remove reference representation rewrite for adaptive_avg_pool2d (#108924) Summary: integer adaptive_avg_pool2d is not well defined due to different possible ways of rounding fp32 value to integer value, and this op isn't too critical for numerics (since it appears not too often), so we'll skip this for now. we might need to revert the changes that adds integer impl for adaptive_avg_pool op as well Test Plan: python test/test_quantization.py TestQuantizePT2ERepresentation Reviewers: Subscribers: Tasks: Tags: Pull Request resolved: https://github.com/pytorch/pytorch/pull/108924 Approved by: https://github.com/kimishpatel
Author
Committer
Parents
  • test/quantization/pt2e
    • File
      test_representation.py
  • torch/ao/quantization/pt2e/representation
    • File
      rewrite.py