I have simplified Iman's approach to do the following: idx = torch.arange(tmp.shape[1], 0, -1) tmp2= tmp * idx indices = torch.argmax(tmp2, ...
確定! 回上一頁