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

could we compile torchVision and torchAudio cpp to javacpp && how to use javacpp compile whole cpp project with multiple cpp files into java/scala #1555

Open
mullerhai opened this issue Dec 23, 2024 · 0 comments

Comments

@mullerhai
Copy link

mullerhai commented Dec 23, 2024

now we have use javacpp pytorch write one pytorch model framework in scala ,but we also need torchvision and torchAudio, now these two library also has cpp binding ,so we think javacpp also could compile them to java/scala. https://github.com/pytorch/vision/blob/main/torchvision/csrc/vision.cpp https://github.com/pytorch/audio/blob/main/src/libtorchaudio ,If javacpp could make them compile to java/scala ,will make big powerful for scala deeplearning. I only know use java -jar javacpp-**jar could compile one cpp file to java, but multiple cpp files in whole cpp project use javacpp to generate one dll so file and into java invoke I wonder you can teach me. thanks

@mullerhai mullerhai changed the title could we compile torchVision and torchAudio cpp to javacpp could we compile torchVision and torchAudio cpp to javacpp && how to use javacpp compile whole cpp project with multiple cpp files into java/scala Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants