ONE - On-device Neural Engine
|
Data Structures | |
class | Dalgona |
class | PostOperatorHook |
class | PreOperatorHook |
class | PythonHooks |
Functions | |
std::vector< float > | genRandomFloatData (uint32_t num_elements, float min, float max) |
template<typename T > | |
std::vector< T > | genRandomIntData (uint32_t num_elements, T min, T max) |
const std::string | toString (luci::CircleOpcode opcode) |
const std::string | toString (luci::FusedActFunc fused_act) |
py::object | none () |
std::vector< py::dict > | inputsPyArray (const luci::CircleNode *node, luci_interpreter::Interpreter *interpreter) |
std::vector< py::dict > | outputsPyArray (const luci::CircleNode *node, luci_interpreter::Interpreter *interpreter) |
py::dict | outputPyArray (const luci::CircleNode *node, luci_interpreter::Interpreter *interpreter) |
bool | multi_out_node (const luci::CircleNode *node) |
template<typename... Args> | |
void | pySafeCall (py::object func, Args... args) |
std::vector< float > dalgona::genRandomFloatData | ( | uint32_t | num_elements, |
float | min, | ||
float | max | ||
) |
Definition at line 26 of file RandomUtils.cpp.
Referenced by dalgona::Dalgona::runAnalysisWithRandomInput().
std::vector< T > dalgona::genRandomIntData | ( | uint32_t | num_elements, |
T | min, | ||
T | max | ||
) |
Definition at line 28 of file RandomUtils.h.
std::vector< py::dict > dalgona::inputsPyArray | ( | const luci::CircleNode * | node, |
luci_interpreter::Interpreter * | interpreter | ||
) |
Definition at line 109 of file Utils.cpp.
References loco::Node::arg(), and loco::Node::arity().
Referenced by dalgona::PostOperatorHook::visit(), and dalgona::PreOperatorHook::visit().
bool dalgona::multi_out_node | ( | const luci::CircleNode * | node | ) |
Definition at line 175 of file Utils.cpp.
References luci::CircleNode::opcode().
Referenced by dalgona::PostOperatorHook::visit().
py::object dalgona::none | ( | ) |
Definition at line 107 of file Utils.cpp.
Referenced by dalgona::PostOperatorHook::visit(), and dalgona::PreOperatorHook::visit().
py::dict dalgona::outputPyArray | ( | const luci::CircleNode * | node, |
luci_interpreter::Interpreter * | interpreter | ||
) |
Definition at line 160 of file Utils.cpp.
References luci::CircleNode::name(), luci::CircleNode::opcode(), and THROW_UNLESS.
Referenced by dalgona::PythonHooks::endNetworkExecution(), dalgona::PythonHooks::startNetworkExecution(), and dalgona::PostOperatorHook::visit().
std::vector< py::dict > dalgona::outputsPyArray | ( | const luci::CircleNode * | node, |
luci_interpreter::Interpreter * | interpreter | ||
) |
Definition at line 134 of file Utils.cpp.
References luci::CircleNode::name(), loco::succs(), THROW_UNLESS, and toString().
Referenced by dalgona::PostOperatorHook::visit().
void dalgona::pySafeCall | ( | py::object | func, |
Args... | args | ||
) |
Definition at line 29 of file Utils.h.
Referenced by dalgona::PythonHooks::endAnalysis(), dalgona::PythonHooks::endNetworkExecution(), dalgona::PythonHooks::importAnalysis(), dalgona::PythonHooks::startNetworkExecution(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), and dalgona::PreOperatorHook::visit().
const std::string dalgona::toString | ( | luci::CircleOpcode | opcode | ) |
Definition at line 26 of file StringUtils.cpp.
Referenced by outputsPyArray(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), dalgona::PreOperatorHook::visit(), dalgona::PostOperatorHook::visit(), and dalgona::PreOperatorHook::visit().
const std::string dalgona::toString | ( | luci::FusedActFunc | fused_act | ) |
Definition at line 45 of file StringUtils.cpp.
References luci::NONE, luci::RELU, luci::RELU6, luci::RELU_N1_TO_1, luci::SIGN_BIT, luci::TANH, and luci::UNDEFINED.