Here is an example which I want to do:
import torch
a = torch.randn(3)
b = torch.randn(3)
c = [a]
if a in c:
    .....
......
if b in c:
    .....

But this code will encounter an issue, which raise

RuntimeError: bool value of non-empty torch.ByteTensor objects is ambiguous

So how can I  judge if a Tensor in a list?