两次torch.sort求元素在排序后的位置目的:利用两次sort求原张量中每个元素 ... ts=torch.randn((1,5),dtype=torch.float)print(ts)srt1,idx=ts.sort( ...
確定! 回上一頁