ONE - On-device Neural Engine
|
#include <ExecutionObservers.h>
Public Member Functions | |
TracingObserver (const std::string &workspace_dir, const ir::Graph &graph, const util::TracingCtx *tracing_ctx) | |
~TracingObserver () | |
void | handleSubgraphBegin (ir::SubgraphIndex) override |
Invoked just before model (not individual operation) execution begins. | |
void | handleJobBegin (IExecutor *, ir::SubgraphIndex, ir::OperationIndex, const backend::Backend *) override |
void | handleJobEnd (IExecutor *, ir::SubgraphIndex, ir::OperationIndex, const backend::Backend *) override |
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 103 of file ExecutionObservers.h.
onert::exec::TracingObserver::TracingObserver | ( | const std::string & | workspace_dir, |
const ir::Graph & | graph, | ||
const util::TracingCtx * | tracing_ctx | ||
) |
Definition at line 116 of file ExecutionObservers.cc.
onert::exec::TracingObserver::~TracingObserver | ( | ) |
Definition at line 124 of file ExecutionObservers.cc.
References EventWriter::get().
|
overridevirtual |
Implements onert::exec::IExecutionObserver.
Definition at line 150 of file ExecutionObservers.cc.
References onert::util::ObjectManager< Index, Object >::at(), EventCollector::BEGIN, onert::backend::Backend::config(), onert::ir::IOperation::name(), EventCollector::onEvent(), onert::ir::Graph::operations(), and onert::util::Index< T, DummyTag >::value().
|
overridevirtual |
Implements onert::exec::IExecutionObserver.
Definition at line 163 of file ExecutionObservers.cc.
References onert::util::ObjectManager< Index, Object >::at(), onert::backend::Backend::config(), EventCollector::END, EventCollector::onEvent(), onert::ir::Graph::operations(), and onert::util::Index< T, DummyTag >::value().
|
overridevirtual |
Invoked just before model (not individual operation) execution begins.
Reimplemented from onert::exec::IExecutionObserver.
Definition at line 142 of file ExecutionObservers.cc.
References EventCollector::BEGIN, EventCollector::onEvent(), and onert::util::Index< T, DummyTag >::value().
|
overridevirtual |
Invoked just after model (not individual operation) execution ends.
Reimplemented from onert::exec::IExecutionObserver.
Definition at line 172 of file ExecutionObservers.cc.
References EventCollector::END, EventCollector::onEvent(), and onert::util::Index< T, DummyTag >::value().
|
inlineoverridevirtual |
Implements onert::exec::IExecutionObserver.
Definition at line 115 of file ExecutionObservers.h.
References onert::exec::TRACING.