Pytorch提供了沿给定维度 torch.topk(input, k, dim=None, largest=True, sorted=True) 计算 k 给定 input 张量的最大元素的功能 dim 。
確定! 回上一頁