max找出tensor的行或者列最大的值:找出每行的最大值:importtorchoutputs=torch.FloatTensor([[1],[2],[3]])print(torch.max(outputs.data,1)) ...
確定! 回上一頁