pytorch
88edc218 - [quant][fx] Fix lowering pass for cases when `to` is not called with positional args (#75146)

Commit
2 years ago
[quant][fx] Fix lowering pass for cases when `to` is not called with positional args (#75146) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/75146 Previously we assume `to` must be called with positioanl args, but this may not be the case, e.g. we can do `to(dtype=?)` or `to(memory_format=?)` Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Imported from OSS Reviewed By: ejguan Differential Revision: D35342088 fbshipit-source-id: 22bfe78ae84e74141ae6560285c5c38bc068c999 (cherry picked from commit a3593c0bb658a4615559c951ee68c9a6f55074d5)
Author
Committer
Parents
Loading