How two calculate the except set between two tensors in pytorch?

后端 未结 0 1907
野性不改
野性不改 2020-12-29 15:54

Given two tensors:

A = torch.tensor([1,2,3])
B = torch.tensor([3,5])

Then, I want to obtain the tensor C = tensor([1,2]), in whi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题