ageron / ageron/handson-ml2

[Chapter 15] Behaviour of Variable Length Sequences in RNN

未关闭
#318 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
Jupyter Notebook
星标
30k
派生
13.1k
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。