Skip to content

[jit] Add Pickler C++ API#23241

Closed
driazati wants to merge 29 commits intomasterfrom
driazati/pick/2
Closed

[jit] Add Pickler C++ API#23241
driazati wants to merge 29 commits intomasterfrom
driazati/pick/2

Conversation

@driazati
Copy link
Copy Markdown
Contributor

@driazati driazati commented Jul 23, 2019

This PR adds functions to wrap the Pickler and exposes them to the C++ API

Differential Revision: D16746451

@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jul 23, 2019
@pytorchbot pytorchbot added caffe2 module: build Build system issues labels Jul 23, 2019
@driazati driazati changed the title [jit][wip][skip ci] Add Pickler API [jit] Add Pickler C++ API Jul 24, 2019
@driazati driazati requested review from suo and zdevito and removed request for zdevito July 24, 2019 00:21
@pytorchbot pytorchbot added the module: cpp Related to C++ API label Jul 24, 2019
@sidazhang
Copy link
Copy Markdown

sidazhang commented Jul 25, 2019

What is a tensor table?

doesn't pickle just pickle to a blob and unpickle just reads from a blob?

@pytorchbot pytorchbot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Aug 9, 2019
Copy link
Copy Markdown
Contributor

@mrshenli mrshenli left a comment

Choose a reason for hiding this comment

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

RPC related changes look great! Thanks!

values.size());
return ScriptRet(std::move(values.front()));
auto value = jit::unpickle(payload, payload_size, &message.tensors());
return ScriptRet(std::move(value));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: can we avoid creating an auto value by moving jit::unpickle to the constructor?

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@driazati merged this pull request in 01d98c7.

yf225 pushed a commit to yf225/pytorch that referenced this pull request Aug 11, 2019
driazati pushed a commit that referenced this pull request Aug 13, 2019
This was accidentally removed in #23241
facebook-github-bot pushed a commit that referenced this pull request Aug 13, 2019
Summary:
This was accidentally removed in #23241
Pull Request resolved: #24255

Pulled By: driazati

Differential Revision: D16788490

fbshipit-source-id: 9465570ade0299a845ec1b51cf88efe9c49b439b
@facebook-github-bot facebook-github-bot deleted the driazati/pick/2 branch July 13, 2020 17:55
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
This PR adds functions to wrap the Pickler and exposes them to the C++ API
](https://our.intern.facebook.com/intern/diff/16675418/)
Pull Request resolved: pytorch#23241

Pulled By: driazati

Differential Revision: D16675418

fbshipit-source-id: 76543c81ac67c3e20a75ebc2073191bcbd6573bf
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
This PR adds functions to wrap the Pickler and exposes them to the C++ API

](https://our.intern.facebook.com/intern/diff/16746451/)
Pull Request resolved: pytorch#23241

Pulled By: driazati

Differential Revision: D16746451

fbshipit-source-id: 25ea5db4174006ce41e2e8989c8a345b82f637a7
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
This was accidentally removed in pytorch#23241
Pull Request resolved: pytorch#24255

Pulled By: driazati

Differential Revision: D16788490

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

Labels

caffe2 Merged module: build Build system issues module: cpp Related to C++ API oncall: distributed Add this issue/PR to distributed oncall triage queue oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants