Skip to content

Instantly share code, notes, and snippets.

@rubenfiszel
Created March 2, 2016 23:12
Show Gist options
  • Save rubenfiszel/aa61591f26c5c9707062 to your computer and use it in GitHub Desktop.
Save rubenfiszel/aa61591f26c5c9707062 to your computer and use it in GitHub Desktop.
java.lang.IllegalStateException: Unable to get number of of rows for a non 2d matrix
at org.nd4j.linalg.api.ndarray.BaseNDArray.rows(BaseNDArray.java:3411)
at org.nd4j.linalg.api.ndarray.BaseNDArray.mmul(BaseNDArray.java:2321)
at org.deeplearning4j.nn.layers.BaseLayer.preOutput(BaseLayer.java:327)
at org.deeplearning4j.nn.layers.BaseLayer.activate(BaseLayer.java:338)
at org.deeplearning4j.nn.layers.BaseLayer.activate(BaseLayer.java:358)
at org.deeplearning4j.nn.graph.vertex.impl.LayerVertex.doForward(LayerVertex.java:87)
at org.deeplearning4j.nn.graph.ComputationGraph.feedForward(ComputationGraph.java:738)
at org.deeplearning4j.nn.graph.ComputationGraph.computeGradientAndScore(ComputationGraph.java:663)
at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:150)
at org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:56)
at org.deeplearning4j.optimize.Solver.optimize(Solver.java:52)
at org.deeplearning4j.nn.graph.ComputationGraph.fit(ComputationGraph.java:492)
at ccup.SelfPlay$.train2(SelfPlay.scala:320)
at ccup.SoloGame$.delayedEndpoint$ccup$SoloGame$1(SoloGame.scala:25)
at ccup.SoloGame$delayedInit$body.apply(SoloGame.scala:7)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.App$$anonfun$main$1.apply(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:381)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
at scala.App$class.main(App.scala:76)
at ccup.SoloGame$.main(SoloGame.scala:7)
at ccup.SoloGame.main(SoloGame.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment