graykode / graykode/nlp-tutorial
TextCNN_Torch have wrong comment
Open
- 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
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