Skip to content
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

What is the purpose of this software ? #437

Open
lix19937 opened this issue May 24, 2024 · 3 comments
Open

What is the purpose of this software ? #437

lix19937 opened this issue May 24, 2024 · 3 comments

Comments

@lix19937
Copy link

lix19937 commented May 24, 2024

What is the purpose of this software and what are its application examples ?

Between pytorch and tensorrt ? For training or inference ?

Or to make wheels. ?

@cogwheel
Copy link

cogwheel commented May 31, 2024

As far as I can tell, the intended use is to just locally build and install this using setup.py in bindings/torch. Then you can use it as part of pytorch networks in Python. You need to have the CUDA toolkit available for building .cu files and to have the libtorch library (c++ version of torch) for the matching version of CUDA.

The C++ side of things is a bit more sparse. I basically had to duplicate the functionality of modules.py and bindings.cpp using libtorch. It would be much more convenient if the Module class in bindings/torch/bindings.cpp were a) exposed in a header file, and b) was itself a torch::nn::Module so that there wouldn't need to be the python middle layer.

@cogwheel
Copy link

cogwheel commented Jun 7, 2024

The C++ side of things is a bit more sparse. I basically had to duplicate the functionality of modules.py and bindings.cpp using libtorch. It would be much more convenient if the Module class in bindings/torch/bindings.cpp were a) exposed in a header file, and b) was itself a torch::nn::Module so that there wouldn't need to be the python middle layer.

We released this publicly earlier this week if you want to have a look: fbriggs/lifecast_public@aaa1000#diff-aef1b984940ceb407dca09e98a080c07a1cecbb1ae6b386caa0028e03e45bc48

@lix19937
Copy link
Author

Thanks both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants