Skip to content

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 driazati, eellison and zdevito 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.

6 participants