Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. MultiLayerNetwork.feedForwardToLayer() has thrown a DL4JInvalidInputException
    Unsorted
    1
    1
    0
  2. BaseLayer.preOutput() has thrown a DL4JInvalidInputException
    Unsorted
    1
    2
    0

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.deeplearning4j.exception.DL4JInvalidInputException: Input size (235 columns; shape = [1, 235]) is invalid: does not match layer input size (layer # inputs = 220)
3 matching frames hidden
    at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.activationFromPrevLayer(MultiLayerNetwork.java:554)
    at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.feedForwardToLayer(MultiLayerNetwork.java:677)
    at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.feedForward(MultiLayerNetwork.java:631)
    at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.feedForward(MultiLayerNetwork.java:622)
40 frames hidden

External results for this pattern (2)

  1. Jayeshecsvia GitHub4 months ago
    Input size (235 columns; shape = [1, 235]) is invalid: does not match layer input size (layer # inputs = 220)
    Show stack trace
  2. Jerome tanvia Stack Overflow4 months ago
    Input that is not a matrix; expected matrix (rank 2), got rank 4 array with shape [128, 1, 28, 28]
    Show stack trace