graykode / graykode/nlp-tutorial
seq2seq(attention) have wrong comment
未关闭
- 主要语言
- Jupyter Notebook
- 星标
- 14.9k
- 派生
- 3.9k
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
context = tf.matmul(attn_weights, enc_outputs)
dec_output = tf.squeeze(dec_output, 0) # [1, n_step]
context = tf.squeeze(context, 1) # [1, n_hidden]
```
I think dec_output shape is [1,n_hidden]
贡献指南
调研方向
Start with the seq2seq attention example containing the shown tf.matmul and tf.squeeze calls. Verify the shape represented by dec_output, then update its inline comment to match the actual tensor shape; done means the comment is accurate and the surrounding context comment remains consistent.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- tensorflow
- 领域
- machine-learning
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100