ONE - On-device Neural Engine
|
#include <PythonHooks.h>
Public Member Functions | |
PythonHooks (luci_interpreter::Interpreter *interpreter) | |
void | importAnalysis (const std::string &analysis_path, py::object &globals, const std::string &analysis_args) |
void | endAnalysis () |
void | startNetworkExecution (loco::Graph *graph) |
void | endNetworkExecution (loco::Graph *graph) |
void | preOperatorExecute (const luci::CircleNode *node) override |
void | postOperatorExecute (const luci::CircleNode *node) override |
Public Member Functions inherited from luci_interpreter::ExecutionObserver | |
virtual | ~ExecutionObserver () |
virtual void | postTensorWrite (const luci::CircleNode *node, const Tensor *tensor) |
Definition at line 32 of file PythonHooks.h.
|
inline |
Definition at line 35 of file PythonHooks.h.
void dalgona::PythonHooks::endAnalysis | ( | ) |
Definition at line 103 of file PythonHooks.cpp.
References dalgona::pySafeCall().
void dalgona::PythonHooks::endNetworkExecution | ( | loco::Graph * | graph | ) |
Definition at line 84 of file PythonHooks.cpp.
References loco::output_nodes(), dalgona::outputPyArray(), and dalgona::pySafeCall().
void dalgona::PythonHooks::importAnalysis | ( | const std::string & | analysis_path, |
py::object & | globals, | ||
const std::string & | analysis_args | ||
) |
Definition at line 39 of file PythonHooks.cpp.
References dalgona::pySafeCall().
|
overridevirtual |
Reimplemented from luci_interpreter::ExecutionObserver.
Definition at line 33 of file PythonHooks.cpp.
References luci::CircleNode::accept().
|
overridevirtual |
Reimplemented from luci_interpreter::ExecutionObserver.
Definition at line 27 of file PythonHooks.cpp.
References luci::CircleNode::accept().
void dalgona::PythonHooks::startNetworkExecution | ( | loco::Graph * | graph | ) |
Definition at line 66 of file PythonHooks.cpp.
References loco::input_nodes(), dalgona::outputPyArray(), and dalgona::pySafeCall().