Skip to content

Remove unnecessary Node* closures in operator registration#27007

Closed
zdevito wants to merge 15 commits intogh/zdevito/119/basefrom
gh/zdevito/119/head
Closed

Remove unnecessary Node* closures in operator registration#27007
zdevito wants to merge 15 commits intogh/zdevito/119/basefrom
gh/zdevito/119/head

Conversation

@zdevito
Copy link
Contributor

@zdevito zdevito commented Sep 27, 2019

Stack from ghstack:

Differential Revision: D17696525

Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
@zdevito zdevito requested a review from resistor October 8, 2019 22:56
Copy link
Contributor

@resistor resistor left a comment

Choose a reason for hiding this comment

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

Very nice!

@resistor
Copy link
Contributor

resistor commented Oct 8, 2019

Is there measurable code size impact from this?

@zdevito
Copy link
Contributor Author

zdevito commented Oct 8, 2019

I didn't bother to measure it. The issue was we were missing a constructor that took a symbol, which was blocking people from using the easier overload.

Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
Remove unnecessary Node* closures in operator registration

gh-metadata: pytorch pytorch 27007 gh/zdevito/119/head
@facebook-github-bot
Copy link
Contributor

@zdevito merged this pull request in 5d26ba0.

@facebook-github-bot facebook-github-bot deleted the gh/zdevito/119/head branch October 28, 2019 22:23
thiagocrepaldi pushed a commit to thiagocrepaldi/pytorch that referenced this pull request Feb 4, 2020
Summary: Pull Request resolved: pytorch#27007

Test Plan: Imported from OSS

Differential Revision: D17696525

Pulled By: zdevito

fbshipit-source-id: b329b77afa0e6dbe9cb920a98cf07bb329d01023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: onnx Related to torch.onnx module: third_party oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants