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

GitHub | BDUG | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.IllegalStateException

    Cannot do forward pass: inputs not set

    at org.deeplearning4j.nn.graph.vertex.impl.MergeVertex.doForward()
  2. org.deeplearning4j.nn
    ComputationGraph.computeGradientAndScore
    1. org.deeplearning4j.nn.graph.vertex.impl.MergeVertex.doForward(MergeVertex.java:77)
    2. org.deeplearning4j.nn.graph.ComputationGraph.feedForward(ComputationGraph.java:984)
    3. org.deeplearning4j.nn.graph.ComputationGraph.computeGradientAndScore(ComputationGraph.java:890)
    3 frames
  3. org.deeplearning4j.optimize
    Solver.optimize
    1. org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:152)
    2. org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:54)
    3. org.deeplearning4j.optimize.Solver.optimize(Solver.java:51)
    3 frames
  4. org.deeplearning4j.nn
    ComputationGraph.fit
    1. org.deeplearning4j.nn.graph.ComputationGraph.fit(ComputationGraph.java:769)
    2. org.deeplearning4j.nn.graph.ComputationGraph.fit(ComputationGraph.java:737)
    3. org.deeplearning4j.nn.graph.ComputationGraph.fit(ComputationGraph.java:612)
    3 frames
  5. imagenet
    ImageNetMain.main
    1. imagenet.ImageNetMain.main(ImageNetMain.java:40)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  7. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame