ONE - On-device Neural Engine
|
#include <Backend.h>
Public Member Functions | |
Backend (const std::string &onnx_path) | |
void | prepare (const std::function< void(nnkit::TensorContext &)> &f) override |
void | run (void) override |
void | teardown (const std::function< void(nnkit::TensorContext &)> &f) override |
Public Member Functions inherited from nnkit::Backend | |
virtual | ~Backend ()=default |
virtual void | prepare (const std::function< void(TensorContext &)> &f)=0 |
virtual void | teardown (const std::function< void(TensorContext &)> &f)=0 |
|
inline |
|
override |
Definition at line 27 of file Backend.cpp.
References nnkit::support::onnx::Runner::inputs(), nnkit::support::onnx::Runner::prepareInputs(), and nnkit::support::onnx::Runner::prepareOutputs().
|
overridevirtual |
Implements nnkit::Backend.
Definition at line 37 of file Backend.cpp.
References nnkit::support::onnx::Runner::run().
Referenced by package.infer.session::inference().
|
override |
Definition at line 39 of file Backend.cpp.
References nnkit::support::onnx::Runner::outputs().