Skip to content

Conversation

@dzhulgakov
Copy link
Collaborator

@dzhulgakov dzhulgakov commented Sep 25, 2019

Stack from ghstack:

Minimal revert of #26131 necessary to cutdown the codesize pre 1.3 until we figure out how to make templates better. Note the full revert doesn't work as many changes landed on top of it.

On my linux machine libtorch.so (no cuda build) went from 98Mb to 75Mb

Differential Revision: D17576585

@pytorchbot pytorchbot added module: internals Related to internal abstractions in c10 and ATen module: operators labels Sep 25, 2019
Minimal revert of #26131 necessary to cutdown the codesize pre 1.3 until we figure out how to make templates better. Note the full revert doesn't work as many changes landed on top of it.

On my linux machine libtorch.so (no cuda build) went from 98Mb to 75Mb


[ghstack-poisoned]
@dzhulgakov dzhulgakov added this to the 1.3 milestone Sep 25, 2019
Copy link
Contributor

@smessmer smessmer left a comment

Choose a reason for hiding this comment

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

Looks good. Let's only land this into the release branch though, not to master.

Minimal revert of #26131 necessary to cutdown the codesize pre 1.3 until we figure out how to make templates better. Note the full revert doesn't work as many changes landed on top of it.

On my linux machine libtorch.so (no cuda build) went from 98Mb to 75Mb

Differential Revision: [D17576585](https://our.internmc.facebook.com/intern/diff/D17576585)

[ghstack-poisoned]
@pytorchbot pytorchbot added the module: docs Related to our documentation, both in docs/ and docblocks label Sep 26, 2019
dzhulgakov pushed a commit that referenced this pull request Sep 26, 2019
@ailzhang
Copy link
Contributor

ailzhang commented Sep 27, 2019

Quick question: does this mean the way XLA ops are registered today will be disabled in the release?
[Edit:] Skimmed over the code, seems like only the dispatcher between c10 and aten are changed, this didn't affect registration path. sorry for the noise :P

Copy link
Contributor

@smessmer smessmer left a comment

Choose a reason for hiding this comment

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

This PR is probably not necessary anymore because a lot of PRs landed fixing binary size issues. Feel free to override me though if you disagree.

@gchanan
Copy link
Contributor

gchanan commented Oct 4, 2019

based on @smessmer's comment and a discussion with @dzhulgakov, we are going to not land this.

The stats are this would lower code size by 2 MB (out of ~90), but it's probably better to just keep this code as close as possible to master.

@gchanan gchanan closed this Oct 4, 2019
@facebook-github-bot facebook-github-bot deleted the gh/dzhulgakov/12/head branch November 4, 2019 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: docs Related to our documentation, both in docs/ and docblocks module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants