Skip to content
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

[jit] allow classes to be used in their own methods #20106

Closed
wants to merge 4 commits into from

Conversation

suo
Copy link
Member

@suo suo commented May 3, 2019

Stack from ghstack:

Recent changes to how class names are resolved broke this functionality.
We switched to use the python resolver to find classes, but a class is not
defined in python until after the compilation for that class
complete.

This PR gives PythonResolver the knowledge of the currently compiling
class so it can resolve that name correctly.

Differential Revision: D15202261

Recent changes to how class names are resolved broke this functionality.
We switched to  use the python resolver to find classes, but a class is not
defined in python until *after* the compilation for that class
complete.

This PR gives PythonResolver the knowledge of the currently compiling
class so it can resolve that name correctly.
@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label May 3, 2019
[jit] allow classes to be used in their own methods

Recent changes to how class names are resolved broke this functionality.
We switched to  use the python resolver to find classes, but a class is not
defined in python until *after* the compilation for that class
complete.

This PR gives PythonResolver the knowledge of the currently compiling
class so it can resolve that name correctly.

gh-metadata: pytorch pytorch 20106 gh/suo/35/head
@suo suo requested review from zdevito, eellison and driazati and removed request for zdevito May 3, 2019 19:00
suo added 2 commits May 3, 2019 12:41
[jit] allow classes to be used in their own methods

Recent changes to how class names are resolved broke this functionality.
We switched to  use the python resolver to find classes, but a class is not
defined in python until *after* the compilation for that class
complete.

This PR gives PythonResolver the knowledge of the currently compiling
class so it can resolve that name correctly.

gh-metadata: pytorch pytorch 20106 gh/suo/35/head
[jit] allow classes to be used in their own methods

Recent changes to how class names are resolved broke this functionality.
We switched to  use the python resolver to find classes, but a class is not
defined in python until *after* the compilation for that class
complete.

This PR gives PythonResolver the knowledge of the currently compiling
class so it can resolve that name correctly.

gh-metadata: pytorch pytorch 20106 gh/suo/35/head
@zou3519 zou3519 deleted the gh/suo/35/head branch May 6, 2019 22:27
@facebook-github-bot
Copy link
Contributor

@suo merged this pull request in 47f5be1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged oncall: jit Add this issue/PR to JIT oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants