Hi,
If you want to find if a tensor with same content is in the list, then @ptrblck looks like the right solution.
If you want to find if the same tensor is in the list, you can use:
a = torch.randn(5)
d = [a, torch.randn(3)]
if any(a is d_ for d_ in d):
   print('a in d')
# a will be in d here

d = [a.clone(), torch.randn(3)]
if any(a is d_ for d_ in d):
   print('a in d')
# a will NOT be in d here