-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Cannot load torchscript model in C++ #8882
Comments
Two options:
|
Thank you very much for your swift response. After uninstalling pyg_lib in Python and re-saving the model, it can be loaded in C++ now. |
Can you explain how to build |
I must admit that I have never tried to run PyG with |
Hi,
I tried to use C++ to load a torchscript geometric model with the code "pytorch_geometric/examples/cpp", and have followed the provided instructions to install pytorch_scatter and pytorch_sparse. The program has been successfully compiled, but I encountered an issue when attempting to run ./hello-world using the model generated by save_model.py.
I have tried to use pytorch_geometric 2.3.1 and 2.4 and get the same error, but a ResNet model works well.
Environment
conda
,pip
, source): piptorch-scatter
): masterThe text was updated successfully, but these errors were encountered: