torch.sum(input)→ float. 返回输入张量 input 所有元素的和。 输出形状与输入相同,除了给定维度上为1. 参数:. input (Tensor) – 输入张量.
確定! 回上一頁