Skip to content

conv-bn folding should be used for CNN-based Vision Models when AMP is used with oneDNN Graph #2535

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

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

sanchitintel
Copy link
Contributor

By default, conv-bn folding isn't done with CNN based models when AMP is used with oneDNN Graph. torch.fx.experimental.optimize.fuse should be used for such models

…sed with AMP

By default, conv-bn folding isn't done with CNN based models when AMP is used with oneDNN Graph. `torch.fx.experimental.optimize.fuse` should be used for such models
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 25, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/2535

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 812b863 with merge base 3a769b0 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@msaroufim
Copy link
Member

This seems fine, I'm a bit confused by torch.fx.experimental is a public API though, like why call it experimental then?

@msaroufim msaroufim self-requested a review August 25, 2023 17:07
@sanchitintel
Copy link
Contributor Author

Thanks for reviewing, @msaroufim! :)
I'm also not sure why it wasn't renamed.

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
@svekars svekars merged commit 6b31dd0 into pytorch:main Aug 25, 2023
mikaylagawarecki pushed a commit to mikaylagawarecki/tutorials that referenced this pull request Sep 18, 2023
…s used with oneDNN Graph (pytorch#2535)

* Update tuning guide to reflect folding conv-bn when oneDNN Graph is used with AMP

By default, conv-bn folding isn't done with CNN based models when AMP is used with oneDNN Graph. `torch.fx.experimental.optimize.fuse` should be used for such models
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants