-
Notifications
You must be signed in to change notification settings - Fork 536
Arm backend: Update fuse_batchnorm_pass to create new placeholders #8411
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
- This allows to fuse bn+convs with multiple users of the same weights - Adds new util functions create/delete_const_placeholders to take care of updating the GraphSignature and state_dict/constants dict when handling constant placholders. - Adds and updates related tests Change-Id: I8e550614d9741de840786d9dca9f30af9eb95a64
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8411
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 2 PendingAs of commit 9113109 with merge base efd1a06 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Non related lint error:
Non related build error (s):
|
Non related unittest error:
|
cc @freddan80 do we have a github mirror plans for this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and clean. Thanks! We should add these utils in the shared delegate dir, I can see wanting to use this for XNNPACK for example.
backends/arm/test/misc/test_create_delete_constant_placeholder.py
Outdated
Show resolved
Hide resolved
This should be changed to point to gitlab servers. Let me check |
Great I can move them! Which folder should I use for this? |
Change-Id: I3a82f58f9796e421bd205f030f7d79d72a2f7ed9
@digantdesai Are you ok with the new changes? |
Lint fail unrelated:
macos unrelated |
Once you add the buck line, I can pull internally and run. Thanks for the updates. |
c261f7f
to
67bc6cd
Compare
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
still failing.. let me try a fix, I will let you know if it works. |
I can commandeer, or you can apply this patch,
|
Thanks, patch applied |
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@digantdesai It looks like there are still some meta-internal errors, is that correct? |
No this looks good. Merge it. |
Approved with #8411 (comment)
We cannot merge this, I assume it's due to the required Meta Internal-Only Changes Check - can you override this from your side? |
@digantdesai We are still not able to merge this and it would be nice to get it in soon as we have two more patches based on this, can you take a look? |
@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…8411) * [ARM backend] Update fuse_batchnorm_pass to create new placeholders - This allows to fuse bn+convs with multiple users of the same weights - Adds new util functions create/delete_const_placeholders to take care of updating the GraphSignature and state_dict/constants dict when handling constant placholders. - Adds and updates related tests Change-Id: I8e550614d9741de840786d9dca9f30af9eb95a64 * Move create/delete_constant_node utils to shared folder Change-Id: I3a82f58f9796e421bd205f030f7d79d72a2f7ed9 * Add buck dependency * Fix bazel build --------- Co-authored-by: Digant Desai <digantdesai@meta.com>
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218