If I want to select all elements not in the index, I can manually define a Boolean mask like so: mask = torch.ones_like(x) mask[idx] = 0 ...
確定! 回上一頁