ageron / ageron/handson-ml2

[Chapter 15] Behaviour of Variable Length Sequences in RNN

Open
#318 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Jupyter Notebook
Stars
30k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.