KEMBAR78
[tgif] fix getattr_recursive with ModuleList by liangwang · Pull Request #161204 · pytorch/pytorch · GitHub
Skip to content

Conversation

@liangwang
Copy link
Contributor

@liangwang liangwang commented Aug 21, 2025

Summary: This change updates getattr_recursive to handle qualnames with ModuleList that contain digit indices, for example, op_instances.1.value_model.feature_weights

Test Plan:
TBA

Rollback Plan:

Reviewed By: jiayisuse

Differential Revision: D80503985

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 21, 2025

This appears to be a diff that was exported from phabricator, but the PR author does not have sufficient permissions to run CI. @liangwang, please do step 2 of internal wiki to get write access so you do not need to get CI approvals in the future. If you think this is a mistake, please contact the Pytorch Dev Infra team.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 21, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: liangwang / name: liawan (a33347b)

@pytorch-bot pytorch-bot bot added the release notes: fx release notes category label Aug 21, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 21, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit a33347b with merge base 74280d0 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80503985

liangwang added a commit to liangwang/pytorch that referenced this pull request Aug 23, 2025
Summary:

This change updates `getattr_recursive`  to handle qualnames with ModuleList that contain digit indices, for example, `op_instances.1.value_model.feature_weights`

Test Plan:
TBA

Rollback Plan:

Reviewed By: jiayisuse

Differential Revision: D80503985
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80503985

liangwang added a commit to liangwang/pytorch that referenced this pull request Aug 23, 2025
Summary:
Pull Request resolved: pytorch#161204

This change updates `getattr_recursive`  to handle qualnames with ModuleList that contain digit indices, for example, `op_instances.1.value_model.feature_weights`

Test Plan:
TBA

Rollback Plan:

Reviewed By: jiayisuse

Differential Revision: D80503985
@liangwang
Copy link
Contributor Author

/easycla

liangwang added a commit to liangwang/pytorch that referenced this pull request Aug 24, 2025
Summary:

This change updates `getattr_recursive`  to handle qualnames with ModuleList that contain digit indices, for example, `op_instances.1.value_model.feature_weights`

Test Plan:
TBA

Rollback Plan:

Reviewed By: jiayisuse

Differential Revision: D80503985
liangwang added a commit to liangwang/pytorch that referenced this pull request Aug 24, 2025
Summary:

This change updates `getattr_recursive`  to handle qualnames with ModuleList that contain digit indices, for example, `op_instances.1.value_model.feature_weights`

Test Plan:
TBA

Rollback Plan:

Reviewed By: jiayisuse

Differential Revision: D80503985
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80503985

liangwang added a commit to liangwang/pytorch that referenced this pull request Aug 24, 2025
Summary:
Pull Request resolved: pytorch#161204

This change updates `getattr_recursive`  to handle qualnames with ModuleList that contain digit indices, for example, `op_instances.1.value_model.feature_weights`

Test Plan:
TBA

Rollback Plan:

Reviewed By: jiayisuse

Differential Revision: D80503985
@liangwang liangwang self-assigned this Aug 24, 2025
Summary:
Pull Request resolved: pytorch#161204

This change updates `getattr_recursive`  to handle qualnames with ModuleList that contain digit indices, for example, `op_instances.1.value_model.feature_weights`

Test Plan:
TBA

Rollback Plan:

Reviewed By: jiayisuse

Differential Revision: D80503985
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D80503985

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 25, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
Summary: This change updates `getattr_recursive`  to handle qualnames with ModuleList that contain digit indices, for example, `op_instances.1.value_model.feature_weights`

Test Plan:
TBA

Rollback Plan:

Reviewed By: jiayisuse

Differential Revision: D80503985

Pull Request resolved: pytorch#161204
Approved by: https://github.com/jiayisuse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request fb-exported fx Merged release notes: fx release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants