Hello,
I trained my model in python using PyTorch and now I want to make inference in cpptorch. I am not quite sure how to load my model. I tried saving my model using torch.save_state_dic() and then loading the file using code you provided but i got this error:
/home/aytop/Downloads/cpp-torch/src/loader.cpp:203: std::shared_ptr object_loader::read_object(std::istream&): Assertion `0' failed.
Aborted (core dumped)
Any advice?
Hello, I trained my model in python using PyTorch and now I want to make inference in cpptorch. I am not quite sure how to load my model. I tried saving my model using torch.save_state_dic() and then loading the file using code you provided but i got this error: /home/aytop/Downloads/cpp-torch/src/loader.cpp:203: std::shared_ptr object_loader::read_object(std::istream&): Assertion `0' failed.
Aborted (core dumped)
Any advice?