Open NiceMartin opened 5 years ago
Thanks! I think this was caused by PyTorch version difference. In my previous experiment, both were OK. Now it should be list instead of tuple.
I see. I learned a lot from your code. Thank you very much for your excellent work
Hi, I run the main_snli.py, but got an error message in def create_batch(data,from_index, to_index):
I changed the following sentence left_sents = torch.cat((dict[word].view(1, -1) for word in lsent)) to left_sents = torch.cat([dict[word].view(1, -1) for word in lsent])