Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jackzhxng
Copy link
Contributor

Refactor _get_source_transforsm to remove args

@jackzhxng jackzhxng requested a review from lucylq as a code owner April 28, 2025 15:48
Copy link

pytorch-bot bot commented Apr 28, 2025

🔗 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 Failures

As of commit 51a0583 with merge base 2837867 (image):

NEW FAILURES - The following jobs have failed:

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 28, 2025
@jackzhxng jackzhxng force-pushed the jz/refactor_source_transforms branch from 26ce4dc to ff5e6d9 Compare April 28, 2025 16:21
@jackzhxng jackzhxng force-pushed the jz/refactor_source_transforms branch from ff5e6d9 to 51a0583 Compare April 28, 2025 19:53
@facebook-github-bot
Copy link
Contributor

@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
Copy link
Contributor

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.

Copy link
Contributor

@iseeyuan iseeyuan left a 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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants