graykode / graykode/nlp-tutorial

TextCNN_Torch have wrong comment

Open
#44 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
14.9k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

`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]

Contributor guide

Open the contributing guide

Research direction

Locate the TextCNN_Torch `forward` method containing the `embedded_chars = self.W[X]` comment. Check the tensor shape implied by the code, then update the comment so it matches the actual embedding dimensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.