Noob question: Importing to Eclipse using Gradle. #2069
Unanswered
IHATEWRITINGCODE
asked this question in
Q&A
Replies: 1 comment
-
In Java, you also need import package, you can find javadoc regarding core DJL API For jupyter notebook are you referring to, the java classes is imported in:
You can find the source here: https://github.com/deepjavalibrary/d2l-java/blob/master/utils/djl-imports.ipynb |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to get going with the online tutorial. I would prefer to work within my Eclipse IDE rather than a Jupyter Notebook. I am fairly new to Java. I have downloaded the djl library. I navigate to File>Import>Gradle>Existing Gradle Project (In the Eclipse IDE) and then type in the path "C:\Users\samuel\djl-0.19.0".
This imports all the files into my project explorer, but I'm not particularly sure what to actually do with them at this point... I'd like to start working through chapter 2.1, which uses the ndarray method. I can't seem to access this method. The following lines of code:
NDManager manager = NDManager.newBaseManager();
var x = manager.arange(12);
x
will not work, because NDManager is not found.
In python, the equivalent is just using pip to install a package and then importing the package... What is the Java/DJL equivalent?
Beta Was this translation helpful? Give feedback.
All reactions