ONE - On-device Neural Engine
|
#include <MinMaxRecorder.h>
Public Member Functions | |
MinMaxRecorder (const std::string &workspace_dir, const ir::Graph &graph, const backend::BackendContexts &backend_contexts) | |
void | handleJobBegin (IExecutor *, ir::SubgraphIndex, ir::OperationIndex, const backend::Backend *) override |
void | handleJobEnd (IExecutor *, ir::SubgraphIndex, ir::OperationIndex, const backend::Backend *) override |
void | handleSubgraphBegin (ir::SubgraphIndex) override |
Invoked just before model (not individual operation) execution begins. | |
void | handleSubgraphEnd (ir::SubgraphIndex) override |
Invoked just after model (not individual operation) execution ends. | |
ObserverType | type () const override |
Public Member Functions inherited from onert::exec::IExecutionObserver | |
virtual | ~IExecutionObserver ()=default |
Definition at line 31 of file MinMaxRecorder.h.
onert::exec::MinMaxRecorder::MinMaxRecorder | ( | const std::string & | workspace_dir, |
const ir::Graph & | graph, | ||
const backend::BackendContexts & | backend_contexts | ||
) |
Definition at line 29 of file MinMaxRecorder.cc.
|
inlineoverridevirtual |
Implements onert::exec::IExecutionObserver.
Definition at line 36 of file MinMaxRecorder.h.
|
overridevirtual |
Implements onert::exec::IExecutionObserver.
Definition at line 69 of file MinMaxRecorder.cc.
References onert::util::MinMaxMap< N, Hash >::append(), onert::util::ObjectManager< Index, Object >::at(), onert::exec::minmaxFrom(), and onert::ir::Graph::operations().
|
overridevirtual |
Invoked just before model (not individual operation) execution begins.
Reimplemented from onert::exec::IExecutionObserver.
Definition at line 111 of file MinMaxRecorder.cc.
References onert::util::MinMaxMap< N, Hash >::append(), onert::ir::Graph::getInputs(), onert::backend::ITensorRegistry::getITensor(), and onert::exec::minmaxFrom().
|
overridevirtual |
Invoked just after model (not individual operation) execution ends.
Reimplemented from onert::exec::IExecutionObserver.
Definition at line 143 of file MinMaxRecorder.cc.
|
inlineoverridevirtual |
Implements onert::exec::IExecutionObserver.
Definition at line 45 of file MinMaxRecorder.h.
References onert::exec::MINMAX_DUMP.