Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed shape documentation #131

Merged
merged 1 commit into from
Apr 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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