SumΒΆ
Returns the sum of all elements in the input tensor.
Abstract Signature:
Sum(input: Tensor, dim: Optional[Union[int, List[int]]], keepdim: bool = False, dtype: Optional[Any])
Returns the sum of all elements in the input tensor.
Abstract Signature:
Sum(input: Tensor, dim: Optional[Union[int, List[int]]], keepdim: bool = False, dtype: Optional[Any])