torch. max (input) → Tensor. 返回輸入tensor中所有元素的最大值 a = torch.randn(1, 3) >>0.4729 -0.2266 -0.2085 torch.max(a) >>0.4729.
確定! 回上一頁