java.lang.IllegalStateException: Cannot do forward pass: inputs not set

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

Solutions on the web

via GitHub by BDUG
, 1 year ago
java.lang.IllegalStateException: Cannot do forward pass: inputs not set
at org.deeplearning4j.nn.graph.vertex.impl.MergeVertex.doForward(MergeVertex.java:77)
at org.deeplearning4j.nn.graph.ComputationGraph.feedForward(ComputationGraph.java:984)
at org.deeplearning4j.nn.graph.ComputationGraph.computeGradientAndScore(ComputationGraph.java:890)
at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:152)
at org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:54)
at org.deeplearning4j.optimize.Solver.optimize(Solver.java:51)
at org.deeplearning4j.nn.graph.ComputationGraph.fit(ComputationGraph.java:769)
at org.deeplearning4j.nn.graph.ComputationGraph.fit(ComputationGraph.java:737)
at org.deeplearning4j.nn.graph.ComputationGraph.fit(ComputationGraph.java:612)
at imagenet.ImageNetMain.main(ImageNetMain.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)

Users with the same issue

You are the first who have seen this exception.

Write tip

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