question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What about providing C++ API in pyg, like that in `pytorch_cluster` ?

See original GitHub issue

🚀 Feature

Providing C++ API, like that in pytorch_cluster, pytorch_scatter, pytorch_sparse, pytorch_spline_conv ?

Motivation

Graph convolution applications are gradually deployed in embedding devices. However, there might not be a proper . What’s more, a training procedure with pytorch+pytorch_geometric can be done easily, but the training procedure with libtorch+libtorchgeometric does not exist.

“From Research To Production”, the team provides PyTorch for research, and LibTorch for production. And since last year, GNN has been well developed in research area. Many new methods are proposed. And GNNs has been used in many applications. In my opinion, C++ API can make industrial deployment easier for some practical use.

Additional context

Perhaps this feature request is unrealistic, because as the project repositories shown, torch_geometric is much more like a front-end library which provides tools for research, and other 4 libraries (torch_cluster, torch_scatter, torch_sparse, torch_spline_conv) is the back-end libraries for the front-end. The researchers just know to write the proper Python code (pyg code), and do not need to concern C++/CUDA code. I know the reason why it only has Python code in pyg.

This is just my personal thought, and if other people think this is of no need, I will not mention that again.

Yours sincerely, @wmf1997

P.S. Another reason for this issue is that I want to write some examples for torch_cluster’s C++ API. See this issue

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rusty1scommented, Jun 7, 2020

Awesome! Thanks for all your help. Let’s first make JIT work 😃

0reactions
liaopeiyuancommented, Jun 4, 2020

Hi @rusty1s , I’ve been focusing on deploying graph neural networks in edge computing applications and production environment, so I maybe able to help with designing a C++ api for the package. I’m also familiar with PyTorch C++ API. I believe that maintaining a libtorchgeometric in parallel with the current PyTorch+Python api would be awesome and facilitate a lot in applying graph neural networks in industrial scenarios. You are always welcome to contact me about your ideas around July/August, and before then I will be mainly working on JIT support in Python.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyTorch Cluster - GitHub
PyTorch Cluster. PyPI Version Testing Status Linting Status Code Coverage. This package consists of a small extension library of highly optimized graph ...
Read more >
Error while loading a torch-geometric model in C++
The export part is ok and now I want to load the .pt model on C++. The problem is that some operators are...
Read more >
Installation — pytorch_geometric documentation
Ensure that at least PyTorch 1.12.0 is installed: · Find the CUDA version PyTorch was installed with: python -c "import torch; print(torch. ·...
Read more >
PyTorch Extension Library of Optimized Graph Cluster ...
This package consists of a small extension library of highly optimized graph cluster algorithms for the use in PyTorch. The package consists of...
Read more >
PyTorch C++ API
... pages provide the documentation for the public portions of the PyTorch C++ API. ... learning models through a hierarchical module system (like...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found