include_reduction_kernels.h#
-
namespace ONNX_LIGHT_NAMESPACE
-
namespace onnx_backend_test
-
namespace kernel
-
class ReduceSum#
- #include <include_reduction_kernels.h>
Sum reduction of a FLOAT input
dataalong the dimensions listed in the optionalaxesint64 tensor. Ifaxesis omitted (or empty), the kernel reduces over all dimensions unlessnoop_with_empty_axesis true in which case it performs an identity copy.Public Functions
-
inline explicit ReduceSum(const KernelContext &ctx)#
-
Tensor operator()(const Tensor &data, bool keepdims = true, bool noop_with_empty_axes = false) const#
axesomitted: reduces over all dimensions ofdata(the default whennoop_with_empty_axesis false) or returns a copy ofdatawhennoop_with_empty_axesis true.
-
void operator()(const Tensor &data, bool keepdims, bool noop_with_empty_axes, Tensor &output) const#
Public Static Functions
-
static inline constexpr bool CanRunInPlace() noexcept#
Output shape generally differs from the input shape, so the output buffer cannot in general alias the input buffer.
Private Members
-
KernelContext ctx_#
-
inline explicit ReduceSum(const KernelContext &ctx)#
-
class ReduceSum#
-
namespace kernel
-
namespace onnx_backend_test