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

When windows version born ? #1

Open
kaonick opened this issue Nov 22, 2019 · 3 comments
Open

When windows version born ? #1

kaonick opened this issue Nov 22, 2019 · 3 comments

Comments

@kaonick
Copy link

kaonick commented Nov 22, 2019

Hope as soon as possible...

@1mrlouie
Copy link

1mrlouie commented Feb 1, 2020

Hope as soon as possible...

@erip
Copy link

erip commented Dec 2, 2020

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:

Screen Shot 2020-12-02 at 7 59 58 AM

@JonathanSum
Copy link

Wonderful!

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

4 participants