java-demo
java-demo copied to clipboard
When windows version born ?
Hope as soon as possible...
Hope as soon as possible...
This now works as of PyTorch nightlies on 2 December 2020. To get this to work on Windows, you'll need to adjust the version in the gradle.build file:
dependencies {
// Remember to remove "-SNAPSHOT" after 1.4 is released!
- implementation 'org.pytorch:pytorch_java_only:1.4.0-SNAPSHOT'
+ implementation 'org.pytorch:pytorch_java_only:1.8.0-SNAPSHOT'
}
and then you'll also need to add the lib dir within LIBTORCH_HOME to the path. This is due to how native class loading works on Windows. See the below screenshot for instructions. It was tested against
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)
Voila:
Wonderful!