-
Notifications
You must be signed in to change notification settings - Fork 2
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
powerful repo ! could you test cpp libtorch package generate for java /scala #19
Comments
Can you share some additional context (e.g. links to projects and/or documentation, example code) how you intend to use LibTorch, C++ and Java together? |
because jvm need deeplearning tools ,and need some deeplearning tools suit with bigdata like spark flink. the open3d https://github.com/isl-org/Open3D is also power for slam , we need in java with big data ,but the open3d contributer tell me they not want to do anymore to support for jvm |
What I don't quite grasp is the specific features you are after in javabind. If you have a C++ library such as LibTorch, and you write a small library in C++ that implements some functionality on top of LibTorch, you can expose this to Java (JVM) via JNI with javabind even today. While the sample code puts straightforward operations in C++ function bodies such as adding two numbers, nothing prevents you from adding complex functionality such as invoking a complex ML model in LibTorch. However, if you are looking for a wrapper generator that exposes ALL features of LibTorch (or another library) to Java, javabind is likely not for you. Instead, I would expect library developers to expose a JNI API like they do with their Python API. I understand they might not be interested but I believe it would still be the right place to implement this to ensure that the library and its Java interface evolve together. |
Hi,
now we just looking for cpp library binding with java ,I think this project could do some, if javabind could generate code from cpp libtorch demo for java, it will be popular for java and scala
muller
The text was updated successfully, but these errors were encountered: