Size of the input layer is different from the expected input size
Al momento, stai seguendo questa domanda
- Vedrai gli aggiornamenti nel tuofeed del contenuto seguito.
- Potresti ricevere delle e-mail a seconda delle tuepreferenze per le comunicazioni.
Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
0 voti
Condividi un link a questa domanda
Risposta accettata
1 voto
Condividi un link a questa risposta
- If your target data is not sequences, you can set the OutputMode of gruLayer to "last" to only output the last hidden state. This should be able to concatenate with the output of "fc_4" along dimension 1.
- If your target data are sequences, you could concatenate the output of "fc_4" to each sequence element of the output of "gru_2".
6 Commenti
- I actually think, if I work with trainNetwork, it is much easier for me to iterate over the different hyperparameter etc later. However, if I follow your example from above for trainNetwork, I again get the error message "
- Given my first comment, I adjusted your suggested code for the dlnetwork slightly that it works for 10 x numObs x 252 dlarray-s. And this works. Then I tried to change the 10 to a 1 and the dimentions in minibatchqueue are not stay consistent anymore. Any ideas, why this is the case? Again any help/comment is highly appreciated!
Più risposte (0)
Categorie
Scopri di più su Custom Training Using Automatic Differentiation in Centro assistenza e File Exchange
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
