-
Notifications
You must be signed in to change notification settings - Fork 181
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
Unknown builtin op: torch_scatter::scatter_max #147
Comments
Thanks for your prompt response. After installing torch-scatter C++ API, that is libtorchscatter.so, I can get TorchScript serving using C++ working. |
can you explain how to "installing torch-scatter C++ API" exactly? I want to do a similar thing in windows using VS2017. |
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved? |
Hi @rusty1s, I am able to compile and run the following code:
However, when running inference with PyG script module, I am still getting the error: |
Did you take a look at https://github.com/pyg-team/pytorch_geometric/tree/master/examples/cpp? Does it work for you? |
When I tried to load TorchScript module from C++, I got the error
terminate called after throwing an instance of 'torch::jit::ErrorReport' what(): Unknown builtin op: torch_scatter::scatter_max. Could not find any similar ops to torch_scatter::scatter_max. This op may not exist or may not be currently supported in TorchScript. : File "/opt/conda/lib/python3.7/site-packages/torch_scatter/scatter.py", line 72
The model is trained using PyTorch 1.5.0 and latest pytorch geometric, and torch scatter 2.0.5, and I converted the trained model to TorchScript. I noted the document from https://pytorch-geometric.readthedocs.io/en/latest/notes/jit.html. But it did not mention how to load the custom operators such as torch_scatter::scatter_max. The serving environment is C++, and that's a separate environment from the training environment.
How can I resolve this error for TorchScript serving using C++?
The text was updated successfully, but these errors were encountered: