ONE - On-device Neural Engine
|
#include <RmsNorm.h>
Public Member Functions | |
RmsNorm (const Tensor *input, const Tensor *gamma, Tensor *output, const RmsNormParams ¶ms) | |
const Tensor * | input () const |
const Tensor * | gamma () const |
Tensor * | output () const |
void | configure () override |
void | execute () const override |
Public Member Functions inherited from luci_interpreter::KernelWithParams< RmsNormParams > | |
const RmsNormParams & | 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< RmsNormParams > | |
KernelWithParams (std::vector< const Tensor * > inputs, std::vector< Tensor * > outputs, const RmsNormParams ¶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< RmsNormParams > | |
const RmsNormParams | _params |
Protected Attributes inherited from luci_interpreter::Kernel | |
const std::vector< const Tensor * > | _inputs |
const std::vector< Tensor * > | _outputs |
luci_interpreter::kernels::RmsNorm::RmsNorm | ( | const Tensor * | input, |
const Tensor * | gamma, | ||
Tensor * | output, | ||
const RmsNormParams & | params | ||
) |
Definition at line 29 of file RmsNorm.cpp.
|
overridevirtual |
Implements luci_interpreter::Kernel.
Definition at line 35 of file RmsNorm.cpp.
References gamma(), input(), LUCI_INTERPRETER_CHECK, luci_interpreter::Shape::num_dims(), output(), luci_interpreter::Tensor::resize(), and luci_interpreter::Tensor::shape().
|
overridevirtual |
Implements luci_interpreter::Kernel.
Definition at line 48 of file RmsNorm.cpp.
References input().
|
inline |
Definition at line 34 of file RmsNorm.h.
References luci_interpreter::Kernel::_inputs.
Referenced by configure(), and RmsNorm().
|
inline |
Definition at line 33 of file RmsNorm.h.
References luci_interpreter::Kernel::_inputs.
Referenced by configure(), execute(), and RmsNorm().
|
inline |
Definition at line 35 of file RmsNorm.h.
References luci_interpreter::Kernel::_outputs.
Referenced by configure().