ageron / ageron/handson-ml2

[Chapter 15] Behaviour of Variable Length Sequences in RNN

Aperta
#318 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
Jupyter Notebook
Stelle
30k
Fork
13.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In the SketchRNN Exercise, The behaviour of variable length sequences is defined very succintly.
In the solution :
![image](https://user-images.githubusercontent.com/45713796/99042624-11075900-25b3-11eb-8b00-c739231e8308.png)

This is what is used to process after batching ☝. All sequences are of different length. So I investigated a bit further into how parsing was done and how length of different sequences are handled, here parsing is done on each batch since map is applied after batching.

![image](https://user-images.githubusercontent.com/45713796/99043026-be7a6c80-25b3-11eb-84f6-045db3561741.png)

Here I have 3 Examples of different lengths. I have parsed them together using parse_example. The first output is the initial shape of these 3 Examples. Does parse_example internally take consider the largest example here` 53 by 3` and then construct a sparse tensor of size `3 by 53 by 3` which is same as `3 by 159` and fill the missing values by zero?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.