我正在使用PyTorch的 argmax 功能定义为: torch.argmax(input, dim=None, keepdim=False) 考虑一个例子 a = torch.randn(4, 4) print(a) print(torch.argmax(a, dim=1))
確定! 回上一頁