You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 171 (within forward), self.score was called. encoder_out is in the shape of [batch_size, src_time_steps, output_dims]. Then, moving to the score function, projected_encoder_out is obtained by a linear layer [input_dims, output_dims]. However, the dimension of encoder_out is output_dims; it should be incorrect when pushing a tensor in the output_dims to a linear layer requiring the input of input_dims. Within the class of LSTMdecoder, the attention is built with the same input_dims and output_dims; hence, the file can run, but it is not logically correct.
The text was updated successfully, but these errors were encountered:
Line 171 (within forward), self.score was called. encoder_out is in the shape of [batch_size, src_time_steps, output_dims]. Then, moving to the score function, projected_encoder_out is obtained by a linear layer [input_dims, output_dims]. However, the dimension of encoder_out is output_dims; it should be incorrect when pushing a tensor in the output_dims to a linear layer requiring the input of input_dims. Within the class of LSTMdecoder, the attention is built with the same input_dims and output_dims; hence, the file can run, but it is not logically correct.
The text was updated successfully, but these errors were encountered: