-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Add a wrapper to wrap all optimization for mobile. #35227
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: This wraps. 1. Conv BN folding (not mobile specific) 2. insert XNNPACK conv2d/Linear ops 3. Remove prepacking ops. Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
💊 CircleCI build failures summary and remediationsAs of commit 4188eac (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no CircleCI failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker. This comment has been revised 19 times. |
Is there a strong reason to write this wrapper in C++? Putting it in Python would make it easier to experiment with. |
So each individual step of the wrapper pass is also available as a python binding. BatchNormConv2d fusion, freezing, insertPrePackedOp, FoldPrePackedOps. This is just sugar around it. |
My vote, then, would be to just do the wrapper in Python as well, to make further work on it easier. |
My preference is to keep in the |
Summary: This wraps. 1. Conv BN folding (not mobile specific) 2. insert XNNPACK conv2d/Linear ops 3. Remove prepacking ops. Test Plan: Checked via model transformation of one of the internal model. Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D20603562](https://our.internmc.facebook.com/intern/diff/D20603562) [ghstack-poisoned]
Summary: This wraps. 1. Conv BN folding (not mobile specific) 2. insert XNNPACK conv2d/Linear ops 3. Remove prepacking ops. Test Plan: Checked via model transformation of one of the internal model. Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D20603562](https://our.internmc.facebook.com/intern/diff/D20603562) [ghstack-poisoned]
Summary: This wraps. 1. Conv BN folding (not mobile specific) 2. insert XNNPACK conv2d/Linear ops 3. Remove prepacking ops. Test Plan: Checked via model transformation of one of the internal model. Reviewers: Subscribers: Tasks: Tags: Differential Revision: [D20603562](https://our.internmc.facebook.com/intern/diff/D20603562) [ghstack-poisoned]
This pull request has been merged in dc2c4d0. |
Stack from ghstack:
Summary:
This wraps.
Test Plan:
Checked via model transformation of one of the internal model.
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D20603562