java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal index 2 out of tads 1

GitHub | dinhthap | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    An Error with ConvolutionalIterationListener ?

    GitHub | 9 months ago | dinhthap
    java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal index 2 out of tads 1
  2. 0

    ConvolutionalIterationListener throws an IllegalArgumentException

    GitHub | 7 months ago | s103451
    java.lang.RuntimeException: java.lang.IllegalArgumentException: Illegal index 2 out of tads 1

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Illegal index 2 out of tads 1

      at org.nd4j.linalg.api.ndarray.BaseNDArray.tensorAlongDimension()
    2. nd4j-api
      BaseNDArray.tensorAlongDimension
      1. org.nd4j.linalg.api.ndarray.BaseNDArray.tensorAlongDimension(BaseNDArray.java:783)
      1 frame
    3. org.deeplearning4j.ui
      ConvolutionalIterationListener.iterationDone
      1. org.deeplearning4j.ui.weights.ConvolutionalIterationListener.restoreRGBImage(ConvolutionalIterationListener.java:528)
      2. org.deeplearning4j.ui.weights.ConvolutionalIterationListener.iterationDone(ConvolutionalIterationListener.java:124)
      2 frames
    4. org.deeplearning4j.optimize
      Solver.optimize
      1. org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:67)
      2. org.deeplearning4j.optimize.Solver.optimize(Solver.java:51)
      2 frames
    5. org.deeplearning4j.nn
      MultiLayerNetwork.fit
      1. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1396)
      2. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1433)
      2 frames
    6. com.fis.cnn
      ConvolutionalNetRun.main
      1. com.fis.cnn.ConvolutionalNetModel.train(ConvolutionalNetModel.java:88)
      2. com.fis.cnn.ConvolutionalNetRun.main(ConvolutionalNetRun.java:32)
      2 frames