Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

fix shape comments #3025

Merged
merged 1 commit into from
Jul 9, 2019
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
2 changes: 1 addition & 1 deletion allennlp/models/encoder_decoders/simple_seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def _prepare_attended_input(self,
"""Apply attention over encoder outputs and decoder state."""
# Ensure mask is also a FloatTensor. Or else the multiplication within
# attention will complain.
# shape: (batch_size, max_input_sequence_length, encoder_output_dim)
# shape: (batch_size, max_input_sequence_length)
encoder_outputs_mask = encoder_outputs_mask.float()

# shape: (batch_size, max_input_sequence_length)
Expand Down