Skip to content

Commit

Permalink
Fixed shape documentation (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdavis-mozilla authored and kylegao91 committed Apr 2, 2018
1 parent aef9b9f commit 4c661ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seq2seq/models/TopKDecoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class TopKDecoder(torch.nn.Module):
Inputs: inputs, encoder_hidden, encoder_outputs, function, teacher_forcing_ratio
- **inputs** (seq_len, batch, input_size): list of sequences, whose length is the batch size and within which
each sequence is a list of token IDs. It is used for teacher forcing when provided. (default is `None`)
- **encoder_hidden** (batch, seq_len, hidden_size): tensor containing the features in the hidden state `h` of
encoder. Used as the initial hidden state of the decoder.
- **encoder_hidden** (num_layers * num_directions, batch_size, hidden_size): tensor containing the features
in the hidden state `h` of encoder. Used as the initial hidden state of the decoder.
- **encoder_outputs** (batch, seq_len, hidden_size): tensor with containing the outputs of the encoder.
Used for attention mechanism (default is `None`).
- **function** (torch.nn.Module): A function used to generate symbols from RNN hidden state
Expand Down

0 comments on commit 4c661ca

Please sign in to comment.