java.lang.IllegalArgumentException: Length must be >= 1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.
java.lang.IllegalArgumentException: Length must be >= 1
at org.nd4j.linalg.api.buffer.BaseDataBuffer.(BaseDataBuffer.java:118)
at org.nd4j.linalg.api.buffer.factory.DefaultDataBufferFactory.create(DefaultDataBufferFactory.java:66)
at org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:1042)
at org.nd4j.linalg.cpu.nativecpu.NDArray.(NDArray.java:70)
at org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.create(CpuNDArrayFactory.java:258)
at org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3696)
at org.nd4j.linalg.api.ndarray.BaseNDArray.create(BaseNDArray.java:1766)
at org.nd4j.linalg.api.ndarray.BaseNDArray.subArray(BaseNDArray.java:1922)
at org.deeplearning4j.nn.params.DefaultParamInitializer.init(DefaultParamInitializer.java:73)
at org.deeplearning4j.nn.conf.layers.DenseLayer.instantiate(DenseLayer.java:51)
at org.deeplearning4j.nn.conf.graph.LayerVertex.instantiate(LayerVertex.java:85)
at org.deeplearning4j.nn.graph.ComputationGraph.init(ComputationGraph.java:352)
at org.deeplearning4j.nn.graph.ComputationGraph.init(ComputationGraph.java:263)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.