graykode / graykode/nlp-tutorial

TextCNN_Torch have wrong comment

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

描述

`def forward(self, X):
embedded_chars = self.W[X] # [batch_size, sequence_length, sequence_length] `

I think the shape is [batch_size, sequence_length,embedding_size]

贡献指南

打开贡献指南

调研方向

定位包含注释 `embedded_chars = self.W[X]` 的 TextCNN_Torch `forward` 方法。检查代码所隐含的张量形状,然后更新注释,使其与实际的嵌入维度一致。

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

评估

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

把新 issue 发到你的邮箱

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