skip-thoughts.torch
skip-thoughts.torch copied to clipboard
Error when batch size = 1
line 135 in skip-thoughts.torch/pytorch/skipthoughts/skipthoughts.py lengths = list(max_length - input.data.eq(0).sum(1).squeeze())
will raise an error if the batch size is 1, saying ``typeError: iteration over a 0-d tensor''