Skip to content

Commit

Permalink
Merge pull request clovaai#181 from tjdevWorks/master
Browse files Browse the repository at this point in the history
Doc String Correction: Attention class forward function
  • Loading branch information
ku21fan authored Jun 24, 2020
2 parents 573cb28 + 4be75b3 commit 425a9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _char_to_onehot(self, input_char, onehot_dim=38):
def forward(self, batch_H, text, is_train=True, batch_max_length=25):
"""
input:
batch_H : contextual_feature H = hidden state of encoder. [batch_size x num_steps x num_classes]
batch_H : contextual_feature H = hidden state of encoder. [batch_size x num_steps x contextual_feature_channels]
text : the text-index of each image. [batch_size x (max_length+1)]. +1 for [GO] token. text[:, 0] = [GO].
output: probability distribution at each step [batch_size x num_steps x num_classes]
"""
Expand Down

0 comments on commit 425a9b3

Please sign in to comment.