list(empty tensor) fails, while (empty tensor).tolist() is ok. It might be better if they were consistent.
list(torch.LongTensor())
#Traceback (most recent call last):
# File "<stdin>", line 1, in <module>
# File ".../torch/tensor.py", line 149, in __iter__
# return iter(map(lambda i: self.select(0, i), _range(self.size(0))))
#RuntimeError: dimension 0 out of range of 0D tensor at .../torch/lib/TH/generic/THTensor.c:24
torch.LongTensor().tolist()
#[]