@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.
@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.