Pytorch的gather用法理解 · 针对0维(输出为行形式). >>> import torch as t; >>> a = t.arange(0,16).view(4,4); >>> a; tensor([[ 0, 1, 2, 3],; [ 4, 5 ...
確定! 回上一頁