Skip to content

Conversation

@JacobSzwejbka
Copy link
Contributor

@JacobSzwejbka JacobSzwejbka commented Jun 24, 2025

Summary:
It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.

This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.
Differential Revision: D77248983

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 24, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Cancelled Job

As of commit b33dbfe with merge base e1db341 (image):

NEW FAILURE - The following job has failed:

CANCELLED JOB - The following job was cancelled. Please retry:

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 Jun 24, 2025
@facebook-github-bot
Copy link
Contributor

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

@github-actions
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@JacobSzwejbka JacobSzwejbka changed the title Expose a method getter api so Expose a method getter api in Module Jun 24, 2025
@facebook-github-bot
Copy link
Contributor

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 14, 2025
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

Reviewed By: larryliu0820

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

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 14, 2025
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

Reviewed By: larryliu0820

Differential Revision: D77248983
JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 14, 2025
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

Reviewed By: larryliu0820

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

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 14, 2025
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

Reviewed By: larryliu0820

Differential Revision: D77248983
JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 14, 2025
Summary:
Pull Request resolved: pytorch#11929

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

Differential Revision: D77248983

Reviewed By: larryliu0820
JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 14, 2025
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

bypass-pytorch-export-checks
bypass-github-export-checks

Reviewed By: larryliu0820

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

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 14, 2025
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

bypass-pytorch-export-checks
bypass-github-export-checks

Reviewed By: larryliu0820

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

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 14, 2025
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

bypass-pytorch-export-checks
bypass-github-export-checks

Reviewed By: larryliu0820

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

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Jul 15, 2025
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

Reviewed By: larryliu0820

Differential Revision: D77248983
Summary:

It is sometimes useful for modules to be passed around in user space for user convenience, but for utilities those users interact with to operate on the methods directly.
This is a bit of a layering violation but it allows us to define narrower scoped helpers so I think its worth the risk that the user finds a way to trash the internal method object. In general method should be fairly robust to being trashed anyway since itself is a blessed front end api from the team.

Reviewed By: larryliu0820

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

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

@facebook-github-bot facebook-github-bot merged commit b6663ef into pytorch:main Jul 15, 2025
104 of 107 checks passed
lucylq pushed a commit that referenced this pull request Jul 17, 2025
Differential Revision: D77248983

Pull Request resolved: #11929
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. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants