LCOV - code coverage report
Current view: top level - home/runner/.local/lib/python3.9/site-packages/torch/include/ATen/ops - sum.h (source / functions) Hit Total Coverage
Test: plumed test coverage Lines: 0 2 0.0 %
Date: 2025-11-25 13:55:50 Functions: 0 0 -

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : // @generated by torchgen/gen.py from Function.h
       4             : 
       5             : #include <ATen/Context.h>
       6             : #include <ATen/DeviceGuard.h>
       7             : #include <ATen/TensorUtils.h>
       8             : #include <ATen/TracerMode.h>
       9             : #include <ATen/core/Generator.h>
      10             : #include <ATen/core/Reduction.h>
      11             : #include <ATen/core/Tensor.h>
      12             : #include <c10/core/Scalar.h>
      13             : #include <c10/core/Storage.h>
      14             : #include <c10/core/TensorOptions.h>
      15             : #include <c10/util/Deprecated.h>
      16             : #include <optional>
      17             : #include <string_view>
      18             : 
      19             : 
      20             : 
      21             : #include <ATen/ops/sum_ops.h>
      22             : 
      23             : namespace at {
      24             : 
      25             : 
      26             : // aten::sum(Tensor self, *, ScalarType? dtype=None) -> Tensor
      27             : inline at::Tensor sum(const at::Tensor & self, ::std::optional<at::ScalarType> dtype=::std::nullopt) {
      28           0 :     return at::_ops::sum::call(self, dtype);
      29             : }
      30             : 
      31             : // aten::sum.dim_IntList(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor
      32             : inline at::Tensor sum(const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false, ::std::optional<at::ScalarType> dtype=::std::nullopt) {
      33           0 :     return at::_ops::sum_dim_IntList::call(self, dim, keepdim, dtype);
      34             : }
      35             : 
      36             : // aten::sum.dim_DimnameList(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None) -> Tensor
      37             : inline at::Tensor sum(const at::Tensor & self, at::DimnameList dim, bool keepdim=false, ::std::optional<at::ScalarType> dtype=::std::nullopt) {
      38             :     return at::_ops::sum_dim_DimnameList::call(self, dim, keepdim, dtype);
      39             : }
      40             : 
      41             : // aten::sum.IntList_out(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!)
      42             : inline at::Tensor & sum_out(at::Tensor & out, const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim=false, ::std::optional<at::ScalarType> dtype=::std::nullopt) {
      43             :     return at::_ops::sum_IntList_out::call(self, dim, keepdim, dtype, out);
      44             : }
      45             : // aten::sum.IntList_out(Tensor self, int[1]? dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!)
      46             : inline at::Tensor & sum_outf(const at::Tensor & self, at::OptionalIntArrayRef dim, bool keepdim, ::std::optional<at::ScalarType> dtype, at::Tensor & out) {
      47             :     return at::_ops::sum_IntList_out::call(self, dim, keepdim, dtype, out);
      48             : }
      49             : 
      50             : // aten::sum.DimnameList_out(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!)
      51             : inline at::Tensor & sum_out(at::Tensor & out, const at::Tensor & self, at::DimnameList dim, bool keepdim=false, ::std::optional<at::ScalarType> dtype=::std::nullopt) {
      52             :     return at::_ops::sum_DimnameList_out::call(self, dim, keepdim, dtype, out);
      53             : }
      54             : // aten::sum.DimnameList_out(Tensor self, Dimname[1] dim, bool keepdim=False, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!)
      55             : inline at::Tensor & sum_outf(const at::Tensor & self, at::DimnameList dim, bool keepdim, ::std::optional<at::ScalarType> dtype, at::Tensor & out) {
      56             :     return at::_ops::sum_DimnameList_out::call(self, dim, keepdim, dtype, out);
      57             : }
      58             : 
      59             : // aten::sum.out(Tensor self, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!)
      60             : inline at::Tensor & sum_out(at::Tensor & out, const at::Tensor & self, ::std::optional<at::ScalarType> dtype=::std::nullopt) {
      61             :     return at::_ops::sum_out::call(self, dtype, out);
      62             : }
      63             : // aten::sum.out(Tensor self, *, ScalarType? dtype=None, Tensor(a!) out) -> Tensor(a!)
      64             : inline at::Tensor & sum_outf(const at::Tensor & self, ::std::optional<at::ScalarType> dtype, at::Tensor & out) {
      65             :     return at::_ops::sum_out::call(self, dtype, out);
      66             : }
      67             : 
      68             : }

Generated by: LCOV version 1.16