-
Notifications
You must be signed in to change notification settings - Fork 25.2k
add oneDNN graph fuser context API and unittest #82491
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
🔗 Helpful links
✅ 1 Base FailuresAs of commit c6f5d6ec31 (more details on the Dr. CI page): Expand to see more✅ None of the CI failures appear to be your fault 💚
🚧 1 fixed upstream failure:These were probably caused by upstream breakages that were already fixed.
Please rebase on the
|
cc: @chunyuan-w @jgong5 |
4e5062c
to
08fe1b2
Compare
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
Successfully rebased |
f7c05ac
to
38a8b8f
Compare
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.
LGTM, but what would be the test time increase after this one is enabled?
@malfet thank you. The added test
|
@malfet I want to check with you if the above test time is ok and we could merge. Thanks. |
@pytorchbot merge -g Yeah, this test time is fine |
@pytorchbot successfully started a merge job. Check the current status here. |
Merge failedReason: This PR is too stale; the last push date was more than 3 days ago. Please rebase and try again. Details for Dev Infra teamRaised by workflow job |
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
Successfully rebased |
38a8b8f
to
b6aa6bc
Compare
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
Successfully rebased |
b6aa6bc
to
c6f5d6e
Compare
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
Successfully rebased |
c6f5d6e
to
11ef1e3
Compare
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/82491
Note: Links to docs will display an error until the docs builds have been completed. ✅ No Failures, 1 PendingAs of commit 11ef1e3: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot merge -g |
@pytorchbot successfully started a merge job. Check the current status here. |
Hey @wenzhe-nrv. |
### Description Add oneDNN graph context manager API to be consistent with other fusers. NNC and nvFuser have two ways to use: 1) a function to enable/disable and 2) a context manager. And the later way is used extensively in libraries like Dynamo. Currently oneDNN Graph fuser only has the former way. To promote the usage of oneDNN graph fuser, this PR creates the context manager for oneDNN graph fuser. This PR should not affect any performance. ### Testing A unit-test `test_context_manager` is added under `test/test_jit_llga_fuser.py` Pull Request resolved: #82491 Approved by: https://github.com/malfet
Description
Add oneDNN graph context manager API to be consistent with other fusers.
NNC and nvFuser have two ways to use: 1) a function to enable/disable and 2) a context manager. And the later way is used extensively in libraries like Dynamo. Currently oneDNN Graph fuser only has the former way. To promote the usage of oneDNN graph fuser, this PR creates the context manager for oneDNN graph fuser.
This PR should not affect any performance.
Testing
A unit-test
test_context_manager
is added undertest/test_jit_llga_fuser.py