deeplearning4j-examples icon indicating copy to clipboard operation
deeplearning4j-examples copied to clipboard

missing Java imports in DenseNetBuilder and DenseNetModel

Open omartinGitHub opened this issue 4 years ago • 3 comments

Issue Description

I was following the quickstart tutorial, with the following basic 3 commands

git clone https://github.com/eclipse/deeplearning4j-examples.git
cd dl4j-examples/
mvn clean install

On Tuesday (13.10.2020) these steps worked successfully (on a Xubuntu 20.4 virtual machine, running openjdk 8), but I then had to switch to another task. Today (16.10.2020) I went back to the tutorial on another Xubuntu VM (running openjdk 11 this time) and the mvn clean install step failed with a missing symbol on several classes (List, ArrayList and Arrays), plus a String[] is not a functional interface, all in DenseNetBuilder and DenseNetModel classes (both in org.deeplearning4j.examples.advanced.modelling.densenet.model package).

Version Information

  • Deeplearning4j 1.0.0-beta7
  • Xubuntu 20.4, openjdk 8 and 11

Contributing

add the missing imports

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

and change

toArray(String[]::new)

into something like (my java 8 is rusty )

stream().toArray(String[]::new)

omartinGitHub avatar Oct 16 '20 14:10 omartinGitHub

Is it the reason of BUILD failed ? image

saviord7 avatar Oct 23 '20 16:10 saviord7

Full log

saviord7 avatar Oct 23 '20 16:10 saviord7

yes, that looks like it.

omartinGitHub avatar Oct 25 '20 11:10 omartinGitHub