Some quick testing on version 0.4.0a0+a3d08de …
>>> import torch
>>> a = torch.randn(3)
>>> b = torch.randn(3)
>>> a in [a]
True
>>> b in [a]
RuntimeError: bool value of Tensor with more than one value is ambiguous