Open z786760876 opened 5 years ago
When I run train.py ,there are some errors in model.py,in “def forward” ,char_output 's dimensions is wrong
In model.py,in “def forward” You can add contiguous() to change the code to: char_output = self.char_encoder(char_input.contiguous().view(-1, char_input.size(2))).view(batch_size, seq_len, -1)
I have the same problem. do you resove it?