You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually, the training of models and reasoning is done through the low-level implementation, so we will not use Java to train models and reasoning regarding the air module.
The first is: because it is within the jvm
The second point is that Java is a high-performance language, but in the AI field, Python and are usually more favored. This is because many AI libraries in Python use high-performance C/C++ implementations at the bottom
[dependencies]
tensorflow = { version = "0.21.0", features = ["tensorflow_gpu"] }
tensorflow-sys = { version = "0.24.0", features = ["tensorflow_gpu"] }
But we chose to use Rust and Tensorflow to train and validate the model, and then Java would call the model code in memory provided by Rust.
Fortunately, we use Java 21 and no longer need to use JNI to call it. Instead, we would choose the methods of external functions and memory API's, such as Arena.
Usually, the training of models and reasoning is done through the low-level implementation, so we will not use
Java
to train models and reasoning regarding the air module.The first is: because it is within the
jvm
The second point is that
Java
is a high-performance language, but in the AI field,Python
and are usually more favored. This is because many AI libraries inPython
use high-performanceC/C++
implementations at the bottomBut we chose to use Rust and Tensorflow to train and validate the model, and then
Java
would call the model code in memory provided byRust
.Fortunately, we use
Java 21
and no longer need to useJNI
to call it. Instead, we would choose the methods of external functions and memory API's, such as Arena.The text was updated successfully, but these errors were encountered: