graykode / graykode/nlp-tutorial

The comment in the Bi-LSTM (Attention) model has an issue.

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

描述

The comment `# output : [batch_size, len_seq, n_hidden]` should indeed be corrected to `# output : [batch_size, len_seq, n_hidden*2]` because the Bi-LSTM model is bidirectional. In a bidirectional LSTM, the hidden size is effectively doubled, as it concatenates the forward and backward hidden states. Therefore, the correct shape of the `output` after permutation is `[batch_size, len_seq, n_hidden * 2]`.

贡献指南

打开贡献指南

调研方向

定位 Bi-LSTM (Attention) 模型的 notebook,并阅读周围的输出置换代码和注释。修正文档中记录的输出形状,使其包含双向 hidden size,然后验证注释是否与模型的实际输出维度一致。

由索引模型根据 Issue 内容生成。

评估

技术栈
jupyter-notebook, pytorch
领域
machine-learning
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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