ONE - On-device Neural Engine
|
Namespaces | |
namespace | config |
namespace | logging |
Data Structures | |
class | CPUTimer |
class | Index |
A wrapper class for unsigned integral Index NOTE : Max value of the underlying type is used as the invalid value. More... | |
class | ITimer |
class | MinMaxMap |
class | ObjectManager |
Class that owns objects and maps them with indices as a handle for them. More... | |
class | Set |
Class for set of custom element &. More... | |
class | TracingCtx |
Class to maintain information about profiling per session. More... | |
Typedefs | |
using | CfgKeyValues = std::unordered_map< std::string, std::string > |
Functions | |
template<typename T > | |
void | CalculateActivationRange (ir::Activation activation, T *activation_min, T *activation_max) |
void | setConfigKeyValues (const CfgKeyValues &keyValues) |
bool | toBool (const std::string &val) |
int | toInt (const std::string &val) |
bool | getConfigBool (const std::string &key) |
int | getConfigInt (const std::string &key) |
std::string | getConfigString (const std::string &key) |
void | config_source (std::unique_ptr< IConfigSource > &&source) |
void | config_source_ext (std::unique_ptr< IConfigSource > &&source) |
using onert::util::CfgKeyValues = typedef std::unordered_map<std::string, std::string> |
Definition at line 28 of file ConfigSource.h.
void onert::util::CalculateActivationRange | ( | ir::Activation | activation, |
T * | activation_min, | ||
T * | activation_max | ||
) |
Definition at line 30 of file CalculateActivationRange.h.
References onert::ir::NONE, onert::ir::RELU, onert::ir::RELU1, onert::ir::RELU6, and onert::ir::SIGMOID.
Referenced by onert::backend::train::ops::BackPropAccumulator::BackPropAccumulator(), onert::backend::cpu::ops::DepthwiseConvolutionLayer::convFloat32(), onert::backend::ruy::ops::ConvolutionLayer::convFloat32(), onert::backend::cpu::ops::DepthwiseConvolutionLayer::convQ8iHybridPerChannel(), onert::backend::cpu::ops::FullyConnectedLayer::fullyConnected16x1Float32(), onert::backend::cpu::ops::FullyConnectedLayer::fullyConnectedFloat32(), onert::backend::ruy::ops::FullyConnectedLayer::fullyConnectedFloat32(), and onert::backend::cpu::ops::PowLayer::powFloat32().
void onert::util::config_source | ( | std::unique_ptr< IConfigSource > && | source | ) |
Definition at line 39 of file ConfigSource.cc.
References config_source().
Referenced by config_source().
void onert::util::config_source_ext | ( | std::unique_ptr< IConfigSource > && | source | ) |
Definition at line 40 of file ConfigSource.cc.
Referenced by setConfigKeyValues().
bool onert::util::getConfigBool | ( | const std::string & | key | ) |
Definition at line 118 of file ConfigSource.cc.
References toBool().
Referenced by onert::loader::BaseLoader< LoaderDomain >::BaseLoader(), onert::compiler::CompilerOptions::fromGlobalConfig(), and onert::exec::ExecutionOptions::fromGlobalConfig().
int onert::util::getConfigInt | ( | const std::string & | key | ) |
Definition at line 124 of file ConfigSource.cc.
References toInt().
Referenced by onert::backend::xnnpack::BackendContext::BackendContext(), onert::backend::cpu::ExternalContext::ExternalContext(), onert::backend::ruy::ExternalContext::ExternalContext(), onert::backend::builtin::ExternalContext::ExternalContext(), and onert::compiler::CompilerOptions::fromGlobalConfig().
std::string onert::util::getConfigString | ( | const std::string & | key | ) |
Definition at line 130 of file ConfigSource.cc.
Referenced by onert::compiler::CompilerOptions::fromGlobalConfig(), onert::backend::acl_common::AclBackendContext< T_TensorBuilder, T_ConstantInitializer, T_KernelGenerator, T_Optimizer >::genTensors(), and onert::backend::basic::genTensors().
void onert::util::setConfigKeyValues | ( | const CfgKeyValues & | keyValues | ) |
Definition at line 42 of file ConfigSource.cc.
References config_source_ext(), and VERBOSE.
Referenced by nnfw_session::load_model_from_path().
bool onert::util::toBool | ( | const std::string & | val | ) |
Definition at line 109 of file ConfigSource.cc.
Referenced by getConfigBool().
int onert::util::toInt | ( | const std::string & | val | ) |
Definition at line 116 of file ConfigSource.cc.
Referenced by getConfigInt().