ONE - On-device Neural Engine
|
#include <Sum.h>
Public Member Functions | |
Sum (const Tensor *input, const Tensor *axes, Tensor *output, Tensor *temp_index, Tensor *resolved_axes, const ReducerParams ¶ms) | |
const Tensor * | input () const |
const Tensor * | axes () const |
Tensor * | output () const |
void | configure () override |
void | execute () const override |
Public Member Functions inherited from luci_interpreter::KernelWithParams< ReducerParams > | |
const ReducerParams & | params () const |
Public Member Functions inherited from luci_interpreter::Kernel | |
virtual | ~Kernel ()=default |
const std::vector< const Tensor * > & | getInputTensors () const |
const std::vector< Tensor * > & | getOutputTensors () const |
Additional Inherited Members | |
Protected Member Functions inherited from luci_interpreter::KernelWithParams< ReducerParams > | |
KernelWithParams (std::vector< const Tensor * > inputs, std::vector< Tensor * > outputs, const ReducerParams ¶ms) | |
Protected Member Functions inherited from luci_interpreter::Kernel | |
Kernel (std::vector< const Tensor * > inputs, std::vector< Tensor * > outputs) | |
Protected Attributes inherited from luci_interpreter::KernelWithParams< ReducerParams > | |
const ReducerParams | _params |
Protected Attributes inherited from luci_interpreter::Kernel | |
const std::vector< const Tensor * > | _inputs |
const std::vector< Tensor * > | _outputs |
luci_interpreter::kernels::Sum::Sum | ( | const Tensor * | input, |
const Tensor * | axes, | ||
Tensor * | output, | ||
Tensor * | temp_index, | ||
Tensor * | resolved_axes, | ||
const ReducerParams & | params | ||
) |
|
inline |
Definition at line 38 of file Sum.h.
References luci_interpreter::Kernel::_inputs.
Referenced by configure(), and Sum().
|
overridevirtual |
Implements luci_interpreter::Kernel.
Definition at line 119 of file Sum.cpp.
References luci_interpreter::KernelWithParams< ReducerParams >::_params, axes(), luci_interpreter::Kernel::getOutputTensors(), input(), luci_interpreter::ReducerParams::keep_dims, LUCI_INTERPRETER_CHECK, luci_interpreter::Shape::num_dims(), luci_interpreter::Shape::num_elements(), output(), output_shape, luci_interpreter::Tensor::resize(), and luci_interpreter::Tensor::shape().
|
overridevirtual |
Implements luci_interpreter::Kernel.
Definition at line 144 of file Sum.cpp.
References input().
|
inline |
Definition at line 37 of file Sum.h.
References luci_interpreter::Kernel::_inputs.
Referenced by configure(), execute(), and Sum().
|
inline |
Definition at line 39 of file Sum.h.
References luci_interpreter::Kernel::_outputs.
Referenced by configure().