-
Notifications
You must be signed in to change notification settings - Fork 131
expose runner itself with context manager #1069
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
This pull request was exported from Phabricator. Differential Revision: D72677312 |
4639dc0
to
89c09da
Compare
This pull request was exported from Phabricator. Differential Revision: D72677312 |
Summary: Pull Request resolved: pytorch#1069 Reviewed By: lgarg26, kiukchung Differential Revision: D72677312
89c09da
to
93dd024
Compare
This pull request was exported from Phabricator. Differential Revision: D72677312 |
Summary: Pull Request resolved: pytorch#1069 Reviewed By: lgarg26, kiukchung Differential Revision: D72677312
93dd024
to
fa6cbd3
Compare
This pull request was exported from Phabricator. Differential Revision: D72677312 |
Summary: Pull Request resolved: pytorch#1069 Reviewed By: lgarg26, kiukchung Differential Revision: D72677312
fa6cbd3
to
7ed4b89
Compare
Summary: Pull Request resolved: pytorch#1069 Reviewed By: lgarg26, kiukchung Differential Revision: D72677312
7ed4b89
to
8f281e4
Compare
This pull request was exported from Phabricator. Differential Revision: D72677312 |
@bobyangyf has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary:
Right now, when we
enter
context afterget_fb_runner
, we are using the existing definition inRunner
which causes type erasure to the super typeRunner
.While this is fine for most cases, we lose the ability to access the apis in sub classes.
Here, we expose the self type instead to prevent erasing types
Reviewed By: kiukchung
Differential Revision: D72677312