java.lang.IllegalStateException: Unable to get number of of columns for a non 2d matrix

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Help with CNN and word2vec
    via GitHub by neosyon
    ,
  • GitHub comment 1358#205535419
    via GitHub by ShakMR
    ,
    • java.lang.IllegalStateException: Unable to get number of of columns for a non 2d matrix at org.nd4j.linalg.api.ndarray.BaseNDArray.columns(BaseNDArray.java:3547) at org.deeplearning4j.nn.conf.preprocessor.FeedForwardToCnnPreProcessor.preProcess(FeedForwardToCnnPreProcessor.java:83) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.activationFromPrevLayer(MultiLayerNetwork.java:520) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.feedForwardToLayer(MultiLayerNetwork.java:644) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore(MultiLayerNetwork.java:1722) at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:152) at org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:56) at org.deeplearning4j.optimize.Solver.optimize(Solver.java:51) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1023) at TestCNN.test.main(test.java:113)
    No Bugmate found.