java.lang.IllegalArgumentException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web8

  • via GitHub by ajohnston9
    ,
  • Stack trace

    • 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(CPUTaskFactory.java:92) at org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner.doTransformOp(DefaultOpExecutioner.java:409) at org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner.exec(DefaultOpExecutioner.java:62) at org.nd4j.linalg.api.ndarray.BaseNDArray.subi(BaseNDArray.java:2660) at org.nd4j.linalg.api.ndarray.BaseNDArray.subi(BaseNDArray.java:2641) at org.nd4j.linalg.api.ndarray.BaseNDArray.sub(BaseNDArray.java:2419) at org.deeplearning4j.nn.layers.feedforward.autoencoder.AutoEncoder.computeGradientAndScore(AutoEncoder.java:123) at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:132) at org.deeplearning4j.optimize.solvers.BaseOptimizer.optimize(BaseOptimizer.java:151) at org.deeplearning4j.optimize.Solver.optimize(Solver.java:52) at org.deeplearning4j.nn.layers.BaseLayer.fit(BaseLayer.java:486) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.pretrain(MultiLayerNetwork.java:170) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1134)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.