-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[ONNX] Introduce 'Functionalization' for fx exporter #98245
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/98245
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit f64b71b: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -196,6 +196,18 @@ def forward(self, x, y): | |||
DynamicAdd(), (x, y), additional_test_inputs=[(input_x, input_y)] | |||
) | |||
|
|||
def test_mutation(self): |
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.
To be deduplicated once dynamic tests are parameterized.
[ghstack-poisoned]
[ghstack-poisoned]
<img src="https://user-images.githubusercontent.com/9376104/229648898-7e85efc8-143f-42f9-93e0-298a8f86c0a1.png" width="80%" height="80%"> [ghstack-poisoned]
@@ -2,6 +2,7 @@ | |||
from typing import Any, Callable, Mapping, Sequence | |||
|
|||
import torch._ops | |||
import torch.fx |
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.
for intellisense/pylance not complaining "fx" is not a known member of module "torch"
for torch.fx.GraphModule
.
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.
Let's go!!
<img src="https://user-images.githubusercontent.com/9376104/229648898-7e85efc8-143f-42f9-93e0-298a8f86c0a1.png" width="80%" height="80%"> [ghstack-poisoned]
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!
…on' for fx exporter" <img src="https://user-images.githubusercontent.com/9376104/229648898-7e85efc8-143f-42f9-93e0-298a8f86c0a1.png" width="80%" height="80%"> [ghstack-poisoned]
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):