pytorch
52a8075f - ns for fx: add support for lstm activation matching (#53779)

Commit
3 years ago
ns for fx: add support for lstm activation matching (#53779) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/53779 Moves the test case for LSTM activation matching to new NS APIs. This requires adding the ability to log non-Tensor types. Since we need Loggers to be scriptable and TorchScript does not support `Union`, we collect statistics in a separate collector if we have an RNN. Note: this can scale to a small N of return types, but not to a large N. If the N becomes large in the future, we will solve it then. Test Plan: ``` python test/test_quantization.py TestFXNumericSuiteCoreAPIsModels ``` Imported from OSS Reviewed By: hx89 Differential Revision: D26967110 fbshipit-source-id: afe60b44fdec28a328813b4f342cf4fe04820baa
Author
Parents
Loading