Skip to content

Conversation

dreiss
Copy link
Contributor

@dreiss dreiss commented Nov 15, 2019

Summary:
Breaking these into separate files allows us to have three different builds:

  • Mobile inference-only.
  • Mobile with module saving.
  • Server with module saving and other export functions like ONNX.

And this can be accomplished just by selecting which cpp files to compile,
without setting any preprocessor flags.

Test Plan: CI. Local mobile+saving build.

Differential Revision: D18509296

@facebook-github-bot facebook-github-bot added oncall: jit Add this issue/PR to JIT oncall triage queue fb-exported labels Nov 15, 2019
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18509296

Copy link
Contributor

Choose a reason for hiding this comment

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

Curious are the std::to_string changes meant to be part of another PR #29839 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think that happened because it's a stacked diff in fbsource.

@smessmer
Copy link
Contributor

Are there any changes that don't just move code to a different file?

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18509296

…29881)

Summary:
Pull Request resolved: pytorch#29881

Breaking these into separate files allows us to have three different builds:
- Mobile inference-only.
- Mobile with module saving.
- Server with module saving and other export functions like ONNX.

And this can be accomplished just by selecting which cpp files to compile,
without setting any preprocessor flags.

Test Plan: CI.  Local mobile+saving build.

Reviewed By: smessmer

Differential Revision: D18509296

fbshipit-source-id: 151a8cca9a01ec9ccc42df060ff03885a4bcf515
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18509296

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fbcb88e.

ljk53 added a commit that referenced this pull request Nov 21, 2019
Summary:
PR #29881 moved Module::save() methods to a separate source file
and removed C10_MOBILE gating logic. Seems it should stay with
export_module.cpp (which is in "NOT INTERN_BUILD_MOBILE" section).
Otherwise it causes link error with build_mobile.sh.

Test:
- build locally
- check CI

[ghstack-poisoned]
ljk53 added a commit that referenced this pull request Nov 21, 2019
Summary:
PR #29881 moved Module::save() methods to a separate source file
and removed C10_MOBILE gating logic. Seems it should stay with
export_module.cpp (which is in "NOT INTERN_BUILD_MOBILE" section).
Otherwise it causes link error with build_mobile.sh.

Test:
- build locally
- check CI

ghstack-source-id: 0485324
Pull Request resolved: #30221
ljk53 added a commit that referenced this pull request Nov 22, 2019
… in cmake"

Summary:
PR #29881 moved Module::save() methods to a separate source file
and removed C10_MOBILE gating logic. Seems it should stay with
export_module.cpp (which is in "NOT INTERN_BUILD_MOBILE" section).
Otherwise it causes link error with build_mobile.sh.

Test:
- build locally
- check CI

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

[ghstack-poisoned]
facebook-github-bot pushed a commit that referenced this pull request Nov 22, 2019
Summary:
Pull Request resolved: #30221

PR #29881 moved Module::save() methods to a separate source file
and removed C10_MOBILE gating logic. Seems it should stay with
export_module.cpp (which is in "NOT INTERN_BUILD_MOBILE" section).
Otherwise it causes link error with build_mobile.sh.

Test:
- build locally
- check CI

Test Plan: Imported from OSS

Differential Revision: D18649234

Pulled By: ljk53

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

Labels

fb-exported 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.

5 participants