Skip to content

A question about the size of the rnn input emb in function forward #52

@shaunchen284

Description

@shaunchen284

I think there might be a wrong in the model.py.

    def forward(self, input, hidden, return_hiddens=False, noise=False):
        emb = self.drop(self.encoder(input.contiguous().view(-1,self.enc_input_size))) # [(seq_len x batch_size) * feature_size]    
        emb = emb.view(-1, input.size(1), self.rnn_hid_size) # [ seq_len * batch_size * feature_size]

where emb is the input of self.rnn, so I think self.rnn_hid_size should be changed to self.rnn_input_size
Looking forward to your reply

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions