The Wayback Machine - https://web.archive.org/web/20200526204540/https://github.com/pyro-ppl/pyro/issues/2054
Skip to content
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

FR Add tutorial on how to serve trained models from C++ #2054

Open
fritzo opened this issue Oct 4, 2019 · 0 comments
Open

FR Add tutorial on how to serve trained models from C++ #2054

fritzo opened this issue Oct 4, 2019 · 0 comments
Assignees
Labels

Comments

@fritzo
Copy link
Member

@fritzo fritzo commented Oct 4, 2019

Originated as a forum post

Let's add a tutorial demonstrating how to serve trained models in C++ using torch.jit.save() and torch::jit::load(). I believe there is some subtlety requiring a torch.jit.trace() to wrap poutine.trace and poutine.replay logic for SVI models and guides.

Note that in some prediction tasks, only the guide is needed and no Pyro logic is required. In this case, if the guide is an nn.Module, it can be easily torch.jit.save()ed and torch::jit::load()ed without any need for Pyro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.