ONE - On-device Neural Engine
|
#include <FullyConnected.h>
Public Member Functions | |
FullyConnected (const Tensor *input, const Tensor *weights, const Tensor *bias, Tensor *output, const FullyConnectedParams ¶ms) | |
FullyConnected (const Tensor *input, const Tensor *weights, const Tensor *bias, Tensor *output, Tensor *scratch, const FullyConnectedParams ¶ms) | |
const Tensor * | input () const |
const Tensor * | weights () const |
const Tensor * | bias () const |
Tensor * | output () const |
Tensor * | scratch () const |
void | configure () override |
void | execute () const override |
Public Member Functions inherited from luci_interpreter::KernelWithParams< FullyConnectedParams > | |
const FullyConnectedParams & | 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< FullyConnectedParams > | |
KernelWithParams (std::vector< const Tensor * > inputs, std::vector< Tensor * > outputs, const FullyConnectedParams ¶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< FullyConnectedParams > | |
const FullyConnectedParams | _params |
Protected Attributes inherited from luci_interpreter::Kernel | |
const std::vector< const Tensor * > | _inputs |
const std::vector< Tensor * > | _outputs |
Definition at line 28 of file FullyConnected.h.
luci_interpreter::kernels::FullyConnected::FullyConnected | ( | const Tensor * | input, |
const Tensor * | weights, | ||
const Tensor * | bias, | ||
Tensor * | output, | ||
const FullyConnectedParams & | params | ||
) |
Definition at line 31 of file FullyConnected.cpp.
|
inline |
Definition at line 33 of file FullyConnected.h.
References scratch().
|
inline |
Definition at line 41 of file FullyConnected.h.
References luci_interpreter::Kernel::_inputs.
Referenced by configure(), execute(), and FullyConnected().
|
overridevirtual |
Implements luci_interpreter::Kernel.
Definition at line 37 of file FullyConnected.cpp.
References bias(), luci_interpreter::Shape::dim(), input(), LUCI_INTERPRETER_CHECK, luci_interpreter::Shape::num_dims(), luci_interpreter::Shape::num_elements(), output(), output_shape, luci_interpreter::KernelWithParams< FullyConnectedParams >::params(), luci_interpreter::Tensor::resize(), luci_interpreter::Tensor::shape(), and weights().
|
overridevirtual |
Implements luci_interpreter::Kernel.
Definition at line 101 of file FullyConnected.cpp.
References bias(), luci_interpreter::Tensor::element_type(), input(), output(), and weights().
|
inline |
Definition at line 39 of file FullyConnected.h.
References luci_interpreter::Kernel::_inputs.
Referenced by configure(), execute(), and FullyConnected().
|
inline |
Definition at line 42 of file FullyConnected.h.
References luci_interpreter::Kernel::_outputs.
Referenced by configure(), and execute().
|
inline |
Definition at line 43 of file FullyConnected.h.
Referenced by FullyConnected().
|
inline |
Definition at line 40 of file FullyConnected.h.
References luci_interpreter::Kernel::_inputs.
Referenced by configure(), execute(), and FullyConnected().