loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • Torch argsort
  • 離開本站
你即將離開本站

並前往https://www.i4k.xyz/article/weixin_43922901/102919660

pytorch, numpy利用另一个数组的索引进行重排序,如torch ...

import torchtorch.manual_seed(1)logits = torch.rand(3, 10)label_ids ... y = torch.from_numpy(x) indices = torch.argsort(y, dim=1) print(indices) 结果: ...

確定! 回上一頁

查詢 「Torch argsort」的人也找了:

  1. Torch argsort
  2. Torch take
  3. Torchargmax
  4. Torch sort
  5. Torch permute
  6. Torch where index
  7. Torch indexing
  8. Torch index_select

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿