@yaoyao that’s all you should need to do. If you built it locally and installed it via maven like I mentioned there’s nothing else to do. You just specify the version and you’re done. Could you clarify what your exact problem is? The test failure above doesn’t tell me why it failed. I’d need more information to go off of. Can you post the full run?
Thanks for your help. Now, I modify nothing in ND4J, and generate the new jar package. And I can successfully compile the dl4j-examples project. However, when I run the LeNetMNIST.java by the command mvn exec:java -Dexec.mainClass=“org.deeplearning4j.examples.quickstart.modeling.convolution.LeNetMNIST” the error occurs:
@yaoyao did you do something special like run mvn -pl :nd4j-native only? Your issue is due to using an old version of snapshots. It feels like you’re mixing old snapshots with the local source one. That shouldn’t happen if you run the build from the root.
I built the dl4j project just by command mvn clean install -DskipTests -T 40 as you suggested before, and the snapshots in my .m2/repo are all new-generated as shown:
@yaoyao you’re ignoring why I told you to rebuild in the first place though. You need to regenerate the dl4j dependencies in order to use them.
I told you to regenerate those dependencies because you had old snapshots laying around that were incompatible with the current build.
@yaoyao great then just rebuild the project with standard mvn clean install or if you’re using intellij just rerun the project with that and let me now what you get.
@yaoyao just rerun your code. Everything is automatically used correctly now. You just need that 1.0.0-SNAPSHOT specified and it needs to be the correct version of the snapshots.