ctongfei / nexus

Experimental tensor-typed deep learning
https://tongfei.me/nexus/
MIT License
257 stars 15 forks source link

object THJNI is not a member of package nexus.torch.jni #22

Closed emilyaherbert closed 5 years ago

emilyaherbert commented 5 years ago

Got this compiling with sbt. Is the current version able to be built?

screenshot at 2018-09-29 18-24-48

ctongfei commented 5 years ago

The Torch core is not ready yet -- PyTorch's ABI kept changing from 0.4 -> 0.4.1 -> 1.0 so that is now broken. You can remove torch from the .sbt file and just use the jvm-ref-backend (JVM reference backend, very slow, but runnable).

ctongfei commented 5 years ago

If you need to build the Torch SWIG bridge btw the C++ code and JVM, you need to first build ATen in PyTorch from source then use the build.sh in the nexus/torch directory. It is a lot hassle and I do not recommend doing that before PyTorch's ABI stabilized after 1.0 and I have time to sort that out.

ctongfei commented 5 years ago

Now fixed with PyTorch 1.0.