理解PyTorch 中的gather 函数 ... 我遇到的代码是NLP 相关的,代码中用 torch.gather() 来将一个tensor 的shape ... 就是在指定维度上gather value。
確定! 回上一頁