A = torch.tensor([4,7,11])
B = torch.tensor([1,4])
How to get a tensor:tensor([7,11])
, in which all element from A but not from B?
A = torch.tensor([4,7,11])
B = torch.tensor([1,4])
How to get a tensor:tensor([7,11])
, in which all element from A but not from B?
I have find the answer from python - Finding non-intersection of two pytorch tensors - Stack Overflow