torch.sum. torch.sum(input, *, dtype=None) → Tensor. Returns the sum of all elements in the input tensor. Parameters: input (Tensor) – the input tensor.
確定! 回上一頁