-
Notifications
You must be signed in to change notification settings - Fork 530
Refactor _get_source_transforms to remove args #10519
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10519
Note: Links to docs will display an error until the docs builds have been completed. ❌ 4 New FailuresAs of commit 51a0583 with merge base 2837867 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
26ce4dc
to
ff5e6d9
Compare
ff5e6d9
to
51a0583
Compare
@jackzhxng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@@ -1196,12 +1259,25 @@ def _get_source_transforms( # noqa | |||
transformations based on the given checkpoint first. In those cases, | |||
this wil be a no-op. | |||
""" | |||
modelname = f"{modelname}_e" | |||
# Create a mock args object with the necessary attributes |
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.
Is it to limit the extend of changes? It's better than Namespace, but I'm wondering if eventually we need to group args, and there can still be passing the entire args even not all fields are needed.
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.
It's a great improvement from passing Namespace directly. Thanks @jackzhxng !
Refactor
_get_source_transforsm
to remove args