pytorch
49adac65 - ns for fx: clean up manual string names of related ops (#57210)

Commit
3 years ago
ns for fx: clean up manual string names of related ops (#57210) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57210 Removes the manually specified string name for sets of related ops, and replaces it with an automatically generated index. The manual name was arbitrary and ok for an MVP, but is not safe for wide usage. Also, adds APIs for users to add custom functions to the relatedness map by either pairing it to a known function or creating a new relatedness set. Test Plan: ``` python test/test_quantization.py TestFXGraphMatcher ``` Imported from OSS Reviewed By: jerryzh168 Differential Revision: D28077977 fbshipit-source-id: e64a1ad6cd063014d74cdad189b0a612b1143435
Author
Parents
Loading