Skip to content

remove protobuf usage from mobile build #25493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

linbinyu
Copy link
Contributor

Summary: remove protobuf usage from mobile build

Test Plan: buck build //caffe2:torch

Differential Revision: D17116846

@linbinyu linbinyu requested a review from apaszke as a code owner August 30, 2019 20:38
@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 30, 2019
Summary:
Pull Request resolved: pytorch#25493

remove protobuf usage from mobile build

Test Plan:
buck build //caffe2:torch

buck build -c 'protobuf.use_v3=true' -c 'project.ignore=true' fbsource//fbandroid/mode/dev_clang_asan //xplat/experimental/pytorch/predictor:predictor

Reviewed By: ljk53

Differential Revision: D17116846

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

This pull request has been merged in 885da48.

ljk53 added a commit that referenced this pull request Sep 4, 2019
Summary:
Continue the work of PR #25493. Remove dependencies of generated
protobuf headers from jit/import.cpp.

Test Plan:
- builds;
- with stacked PR to remove protobuf from cmake;
ljk53 added a commit that referenced this pull request Sep 5, 2019
…port.cpp"

Summary:
Continue the work of PR #25493. Remove dependencies of generated
protobuf headers from jit/import.cpp.

Test Plan:
- builds;
- with stacked PR to remove protobuf from cmake;

Differential Revision: [D17183549](https://our.internmc.facebook.com/intern/diff/D17183549)
ljk53 added a commit that referenced this pull request Sep 5, 2019
…port.cpp"

Summary:
Continue the work of PR #25493. Remove dependencies of generated
protobuf headers from jit/import.cpp.

Test Plan:
- builds;
- with stacked PR to remove protobuf from cmake;

Differential Revision: [D17183549](https://our.internmc.facebook.com/intern/diff/D17183549)
facebook-github-bot pushed a commit that referenced this pull request Sep 5, 2019
Summary:
Pull Request resolved: #25649

Continue the work of PR #25493 to remove dependencies of generated
protobuf headers from jit/import.cpp.

Instead of adding intrusive #if/#else to gate the legacy functions,
moving them into a separate file. Keep the ScriptModuleDeserializer
structure as otherwise it will require a lot of interface changes.

There is not much state to copy from ScriptModuleDeserializer as it only
extracts extra_files before calling into LEGACY_deserialize. There is
no state to copy back into ScriptModuleDeserializer either as it directly
returns script::Module.

Test Plan:
- builds;
- with stacked PR to remove protobuf from cmake;
- load and run ResNet-18 in model.json format with non-mobile build;
- load and run ResNet-18 in pickle format with mobile build;

Differential Revision: D17183549

Pulled By: ljk53

fbshipit-source-id: 2947b95659cd16046d9595fb118d22acc179b3ad
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.

4 participants