Mis matched lengths: [28] != [100352]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web152

  • Mis matched lengths: [28] != [100352]
  • via GitHub by AlexDBlack
    , 11 months ago
    Mis matched lengths
  • Mis matched lengths: [32768] != [16384]
  • Stack trace

    • java.lang.IllegalStateException: Mis matched lengths: [28] != [100352] at org.nd4j.linalg.util.LinAlgExceptions.assertSameLength( at org.nd4j.linalg.api.ops.BaseTransformOp.<init>( at org.nd4j.linalg.api.ops.impl.transforms.Set.<init>( at org.nd4j.linalg.api.ndarray.BaseNDArray.assign( at org.nd4j.linalg.api.ndarray.BaseNDArray.reshape( at org.nd4j.linalg.api.ndarray.BaseNDArray.reshape( at org.nd4j.linalg.api.ndarray.BaseNDArray.reshape( at org.deeplearning4j.nn.layers.BaseOutputLayer.getLabels2d( at org.deeplearning4j.nn.layers.BaseOutputLayer.getGradientsAndDelta( at org.deeplearning4j.nn.layers.BaseOutputLayer.backpropGradient( at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.calcBackpropGradients( at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.backprop( at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore( at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore( at org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize( at org.deeplearning4j.optimize.Solver.optimize( at at at org.deeplearning4j.examples.dataExamples.AnomalyTest.main(

    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

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago