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