FloatTensor([[1],[2],[3]]) print(torch.max(outputs.data,0)). 输出结果:. (tensor([ 3.]), tensor([ 2])). Tensor比较eq相等:.
確定! 回上一頁