I want to get all indexes of values in tensor b. ... Tensor([1,2,4]) mask = torch.zeros(a.shape).type(torch.bool) print(mask) for e in b: mask = mask + (a ...
確定! 回上一頁