ONE - On-device Neural Engine
|
Loads Circle file and provides helpers to access attributes. More...
#include <CircleMicroReader.h>
Public Types | |
using | CircleBuffers = VectorWrapper< flatbuffers::Offset< circle::Buffer > > |
using | CircleTensors = VectorWrapper< flatbuffers::Offset< circle::Tensor > > |
using | CircleOperators = VectorWrapper< flatbuffers::Offset< circle::Operator > > |
using | CircleOperatorCodes = VectorWrapper< flatbuffers::Offset< circle::OperatorCode > > |
using | CircleMetadataSet = VectorWrapper< flatbuffers::Offset< circle::Metadata > > |
Public Member Functions | |
CircleReader ()=default | |
CircleOperatorCodes | opcodes () const |
CircleBuffers | buffers () const |
CircleTensors | tensors () const |
CircleOperators | operators () const |
VectorWrapper< int32_t > | inputs () const |
VectorWrapper< int32_t > | outputs () const |
circle::DataFormat | data_format () const |
CircleMetadataSet | metadata () const |
uint32_t | num_subgraph () const |
circle::BuiltinOperator | builtin_code (const circle::Operator *op) const |
bool | parse (const circle::Model *model) |
bool | select_subgraph (uint32_t subgraph) |
uint32_t | get_current_subgraph_index () const |
Loads Circle file and provides helpers to access attributes.
Definition at line 154 of file CircleMicroReader.h.
using luci_interpreter::CircleReader::CircleBuffers = VectorWrapper<flatbuffers::Offset<circle::Buffer> > |
Definition at line 157 of file CircleMicroReader.h.
using luci_interpreter::CircleReader::CircleMetadataSet = VectorWrapper<flatbuffers::Offset<circle::Metadata> > |
Definition at line 161 of file CircleMicroReader.h.
using luci_interpreter::CircleReader::CircleOperatorCodes = VectorWrapper<flatbuffers::Offset<circle::OperatorCode> > |
Definition at line 160 of file CircleMicroReader.h.
using luci_interpreter::CircleReader::CircleOperators = VectorWrapper<flatbuffers::Offset<circle::Operator> > |
Definition at line 159 of file CircleMicroReader.h.
using luci_interpreter::CircleReader::CircleTensors = VectorWrapper<flatbuffers::Offset<circle::Tensor> > |
Definition at line 158 of file CircleMicroReader.h.
|
default |
|
inline |
circle::BuiltinOperator luci_interpreter::CircleReader::builtin_code | ( | const circle::Operator * | op | ) | const |
|
inline |
Definition at line 173 of file CircleMicroReader.h.
|
inline |
Definition at line 182 of file CircleMicroReader.h.
|
inline |
Definition at line 171 of file CircleMicroReader.h.
References luci::wrap().
Referenced by validate_onnx2circle.OnnxRunner::feed_random_inputs(), and package.infer.session::set_inputs().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 172 of file CircleMicroReader.h.
References luci::wrap().
Referenced by validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
bool luci_interpreter::CircleReader::parse | ( | const circle::Model * | model | ) |
bool luci_interpreter::CircleReader::select_subgraph | ( | uint32_t | subgraph | ) |
|
inline |