-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[quant][fx] Using native backend_config_dict in fusion #75378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary: Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit b59a15c (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Summary: Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35451962](https://our.internmc.facebook.com/intern/diff/D35451962) [ghstack-poisoned]
Summary: Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35451962](https://our.internmc.facebook.com/intern/diff/D35451962) [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35451962](https://our.internmc.facebook.com/intern/diff/D35451962) [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35451962](https://our.internmc.facebook.com/intern/diff/D35451962) [ghstack-poisoned]
Summary: Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35451962](https://our.internmc.facebook.com/intern/diff/D35451962) [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D35451962](https://our.internmc.facebook.com/intern/diff/D35451962) [ghstack-poisoned]
|
@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Pull Request resolved: #75378 Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered, now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now. This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None, we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in quantization code base. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps python test/test_quantization.py TestFXNumericSuiteCoreAPIs Imported from OSS Reviewed By: vkuzo Differential Revision: D35451962 fbshipit-source-id: 31d51850c669e061b67d6d9e0efec994f7ea79ed
Stack from ghstack (oldest at bottom):
Summary:
Previously we are still relying on the registration mechnism and get the default fusion patterns that are registered,
now we have moved all registration to backend_config_dict we can get all fusion patterns just from backend_config_dict now.
This PR enables using native backend_config_dict everywhere in fusion when the backend_config_dict is None,
we'll do similar changes for prepare and convert in the future, to fully enable backend_config_dict in
quantization code base.
Test Plan:
python test/test_quantization.py TestQuantizeFx
python test/test_quantization.py TestQuantizeFxOps
python test/test_quantization.py TestFXNumericSuiteCoreAPIs
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D35451962