pytorch的topk函数将提供以下信息。 top_tensor, indices = torch.topk(a, 2, dim=1) # top_tensor: tensor([[[3] ...
確定! 回上一頁