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

GitHub | neosyon | 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.
  1. 0

    Help with CNN and word2vec

    GitHub | 9 months ago | neosyon
    java.lang.IllegalStateException: Unable to get number of of columns for a non 2d matrix

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Unable to get number of of columns for a non 2d matrix

      at org.nd4j.linalg.api.ndarray.BaseNDArray.columns()
    2. nd4j-api
      BaseNDArray.columns
      1. org.nd4j.linalg.api.ndarray.BaseNDArray.columns(BaseNDArray.java:3547)
      1 frame
    3. org.deeplearning4j.nn
      MultiLayerNetwork.computeGradientAndScore
      1. org.deeplearning4j.nn.conf.preprocessor.FeedForwardToCnnPreProcessor.preProcess(FeedForwardToCnnPreProcessor.java:83)
      2. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.activationFromPrevLayer(MultiLayerNetwork.java:520)
      3. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.feedForwardToLayer(MultiLayerNetwork.java:644)
      4. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore(MultiLayerNetwork.java:1722)
      4 frames
    4. org.deeplearning4j.optimize
      Solver.optimize
      1. org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:152)
      2. org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:56)
      3. org.deeplearning4j.optimize.Solver.optimize(Solver.java:51)
      3 frames
    5. org.deeplearning4j.nn
      MultiLayerNetwork.fit
      1. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1023)
      1 frame
    6. TestCNN
      test.main
      1. TestCNN.test.main(test.java:113)
      1 frame