ONE - On-device Neural Engine
|
#include <FullyConnected.h>
Public Member Functions | |
FullyConnected ()=default | |
FullyConnectedParams & | params (void) |
bool | keep_num_dims (void) const |
void | keep_num_dims (bool knd) |
void | input (const loco::TensorShape &shape, const float *data) |
void | weights (const loco::TensorShape &shape, const float *data) |
void | bias (const loco::TensorShape &shape, const float *data) |
void | fused_act_func (FusedActFunc func) |
void | output (float *data) |
bool | prepare (void) |
const loco::TensorShape & | output_shape (void) const |
void | compute (void) |
Definition at line 29 of file FullyConnected.h.
|
default |
|
inline |
Definition at line 52 of file FullyConnected.h.
References flatbuffers::data().
void luci::compute::FullyConnected::compute | ( | void | ) |
Definition at line 76 of file FullyConnected.cpp.
References luci::compute::FullyConnectedParams::float_activation_max, luci::compute::FullyConnectedParams::float_activation_min, luci::compute::FullyConnectedParams::input_offset, luci::compute::FullyConnectedParams::lhs_cacheable, luci::compute::FullyConnectedParams::output_multiplier, luci::compute::FullyConnectedParams::output_offset, luci::compute::FullyConnectedParams::output_shift, params(), luci::compute::FullyConnectedParams::quantized_activation_max, luci::compute::FullyConnectedParams::quantized_activation_min, luci::compute::FullyConnectedParams::rhs_cacheable, luci::compute::tflite_shape(), luci::compute::tflite_weights_format(), luci::compute::FullyConnectedParams::weights_format, and luci::compute::FullyConnectedParams::weights_offset.
|
inline |
Definition at line 58 of file FullyConnected.h.
|
inline |
Definition at line 40 of file FullyConnected.h.
References flatbuffers::data().
|
inline |
Definition at line 38 of file FullyConnected.h.
|
inline |
Definition at line 37 of file FullyConnected.h.
|
inline |
Definition at line 60 of file FullyConnected.h.
References flatbuffers::data().
|
inline |
Definition at line 64 of file FullyConnected.h.
|
inline |
bool luci::compute::FullyConnected::prepare | ( | void | ) |
Definition at line 37 of file FullyConnected.cpp.
References loco::TensorShape::dim(), luci::compute::FullyConnectedParams::float_activation_max, luci::compute::FullyConnectedParams::float_activation_min, luci::compute::get_act_minmax(), loco::TensorShape::rank(), and loco::Dimension::value().
|
inline |
Definition at line 46 of file FullyConnected.h.
References flatbuffers::data().