Skip to content

Conversation

@suo
Copy link
Member

@suo suo commented Jun 17, 2019

Stack from ghstack:

We were re-ordering definitions to put __init__ first, but not
reordering resolvers. In reality, resolvers are always the same so this
doesn't matter. I may make define() take a single resolver in a future
PR.

Either way, this change is good because it avoids a copy of the whole
AST during define() as well.

Differential Revision: D15867647

We were re-ordering definitions to put `__init__` first, but not
reordering resolvers. In reality, resolvers are always the same so this
doesn't matter. I may make `define()` take a single resolver in a future
PR.

Either way, this change is good because it avoids a copy of the whole
AST during `define()` as well.
@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jun 17, 2019
@suo suo requested a review from zdevito June 17, 2019 23:32
Copy link
Contributor

@zdevito zdevito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NGNT. Definitely want to see us merge resolver into a single argument. They are all the same and managing them is annoying.

[jit] fix bug in CompilationUnit::define

We were re-ordering definitions to put `__init__` first, but not
reordering resolvers. In reality, resolvers are always the same so this
doesn't matter. I may make `define()` take a single resolver in a future
PR.

Either way, this change is good because it avoids a copy of the whole
AST during `define()` as well.

gh-metadata: pytorch pytorch 21886 gh/suo/64/head
[jit] fix bug in CompilationUnit::define

We were re-ordering definitions to put `__init__` first, but not
reordering resolvers. In reality, resolvers are always the same so this
doesn't matter. I may make `define()` take a single resolver in a future
PR.

Either way, this change is good because it avoids a copy of the whole
AST during `define()` as well.

gh-metadata: pytorch pytorch 21886 gh/suo/64/head
@zou3519 zou3519 deleted the gh/suo/64/head branch June 18, 2019 22:44
@facebook-github-bot
Copy link
Contributor

@suo merged this pull request in a388c78.

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