ONE - On-device Neural Engine
|
#include <Backend.h>
Public Member Functions | |
Backend ()=delete | |
Backend (const Backend &)=delete | |
Backend (Backend &&)=delete | |
Backend (const char *pb_path, const char *info_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 |
|
delete |
|
delete |
|
delete |
nnkit::support::tf::Backend::Backend | ( | const char * | pb_path, |
const char * | info_path | ||
) |
Definition at line 40 of file Backend.cpp.
References nncc::core::ADT::tensor::Shape::dim(), nnkit::support::tf::Runner::getTensorShapeFromGraphDef(), nnkit::support::tftestinfo::ParsedTensor::Input, nnkit::support::tftestinfo::parse(), and nncc::core::ADT::tensor::Shape::rank().
|
override |
Definition at line 68 of file Backend.cpp.
References nnkit::support::tf::TensorDataMap::allocate(), nnkit::support::tf::Runner::prepareInputs(), and nnkit::support::tf::Runner::prepareOutputs().
|
overridevirtual |
Implements nnkit::Backend.
Definition at line 80 of file Backend.cpp.
References nnkit::support::tf::TensorDataMap::allocate(), nnkit::support::tf::Runner::output(), and nnkit::support::tf::Runner::run().
Referenced by package.infer.session::inference().
|
override |
Definition at line 105 of file Backend.cpp.