Open
Description
Hi,
I wonder if rnn.forward_step changes the order of (batch_size*self.k) dimension ?
With the code about initializing sequence_scores:
and in each step:
It seems like sequence_scores is updated as (assume that selk.k = 3):
If hidden and inflated_encoder_outputs should be calculated as follow?
inflated_encoder_outputs = _inflate(encoder_outputs,self.k,1).view(batch_size*self.k, -1)
hidden_shape = encoder_hidden.size()
hidden = _inflate(encoder_hidden, self.k, 2).view(hidden_shape[0], batch_size*self.k, hidden_shape[2])
Metadata
Assignees
Labels
No labels