How to run a pytorch model in C/C++?

I have trained a model with pytorch, and I want run the model in C/C++. Maybe the model should be transformed to caffe/caffe2 firstly. Anybody know how to do that? Thanks!

Probably this new tutorial might be helpful.
EDIT: This will only work with the 1.0 preview.

2 Likes

Thank you verymuch! I will try it.