java.lang.IllegalArgumentException: Shapes do not match: x.shape=[1, 9000], y.shape=[1, 3]

  1. 0

    DeepLearning4J: Shapes do not match on FeedForward Auto Encoder

    Stack Overflow | 3 months ago | Romeo Kienzler
    java.lang.IllegalArgumentException: Shapes do not match: x.shape=[1, 9000], y.shape=[1, 3]
  2. 0

    Unable to save MultiLayerNetwork as JSON

    GitHub | 11 months ago | TShockman
    java.lang.RuntimeException: com.fasterxml.jackson.databind.JsonMappingException: Shapes do not match: x.shape=[150, 3], y.shape=[5, 3] (through reference chain: org.deeplearning4j.nn.multilayer.MultiLayerNetwork["backPropGradient2"])
  3. 0

    GitHub comment 1381#207645301

    GitHub | 8 months ago | ajohnston9
    java.lang.IllegalArgumentException: Shapes do not match: x.shape=[10, 12], y.shape=[10, 31]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    image-data-pipeline tutorial not working

    GitHub | 7 months ago | plankes-projects
    java.lang.IllegalArgumentException: Shapes do not match: x.shape=[10, 784], y.shape=[10, 432]
  6. 0

    TSNEStandardExample exception

    GitHub | 11 months ago | biliboc
    java.lang.IllegalArgumentException: Shapes do not match: x.shape=[1, 2], y.shape=[1, 4]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Shapes do not match: x.shape=[1, 9000], y.shape=[1, 3]

      at org.nd4j.linalg.api.parallel.tasks.cpu.CPUTaskFactory.getTransformAction()
    2. org.nd4j.linalg
      DefaultOpExecutioner.exec
      1. org.nd4j.linalg.api.parallel.tasks.cpu.CPUTaskFactory.getTransformAction(CPUTaskFactory.java:92)
      2. org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner.doTransformOp(DefaultOpExecutioner.java:409)
      3. org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner.exec(DefaultOpExecutioner.java:62)
      3 frames
    3. nd4j-api
      BaseNDArray.sub
      1. org.nd4j.linalg.api.ndarray.BaseNDArray.subi(BaseNDArray.java:2660)
      2. org.nd4j.linalg.api.ndarray.BaseNDArray.subi(BaseNDArray.java:2641)
      3. org.nd4j.linalg.api.ndarray.BaseNDArray.sub(BaseNDArray.java:2419)
      3 frames
    4. org.deeplearning4j.nn
      AutoEncoder.computeGradientAndScore
      1. org.deeplearning4j.nn.layers.feedforward.autoencoder.AutoEncoder.computeGradientAndScore(AutoEncoder.java:123)
      1 frame
    5. org.deeplearning4j.optimize
      Solver.optimize
      1. org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:132)
      2. org.deeplearning4j.optimize.solvers.BaseOptimizer.optimize(BaseOptimizer.java:151)
      3. org.deeplearning4j.optimize.Solver.optimize(Solver.java:52)
      3 frames
    6. org.deeplearning4j.nn
      MultiLayerNetwork.fit
      1. org.deeplearning4j.nn.layers.BaseLayer.fit(BaseLayer.java:486)
      2. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.pretrain(MultiLayerNetwork.java:170)
      3. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1134)
      3 frames