ONE - On-device Neural Engine
|
Loads TF lite file and provides helpers to access attributes. More...
#include <Read.h>
Public Member Functions | |
Reader (const tflite::Model *model) | |
Reader (const tflite::Model *model, const std::vector< char > *rawdata) | |
Reader ()=delete | |
uint32_t | version () const |
const std::vector< const tflite::OperatorCode * > & | opcodes () |
const TFliteBuffers_t * | buffers () |
const TFliteTensors_t * | tensors () |
const TFliteOperators_t * | operators () |
const std::vector< int32_t > & | inputs () const |
const std::vector< int32_t > & | outputs () const |
const TFliteMetadata_t * | metadata () const |
const TFliteSignatureDef_t * | signaturedefs () const |
uint32_t | num_subgraph () const |
size_t | buffer_info (uint32_t buf_idx, const uint8_t **buff_data) |
size_t | buffer_info (uint32_t buf_idx, const uint8_t **buff_data, bool &ext_offset) |
tflite::BuiltinOperator | builtin_code (const tflite::Operator *op) const |
std::string | opcode_name (const tflite::Operator *op) const |
bool | select_subgraph (uint32_t subgraph) |
const std::string & | subgraph_name (void) const |
uint32_t | subgraph_index (void) const |
tflread::Reader::Reader | ( | const tflite::Model * | model | ) |
Definition at line 28 of file Read.cpp.
References opcodes().
tflread::Reader::Reader | ( | const tflite::Model * | model, |
const std::vector< char > * | rawdata | ||
) |
Definition at line 43 of file Read.cpp.
References opcodes().
|
delete |
size_t tflread::Reader::buffer_info | ( | uint32_t | buf_idx, |
const uint8_t ** | buff_data | ||
) |
Definition at line 60 of file Read.cpp.
References size.
Referenced by tfldump::dump_model().
size_t tflread::Reader::buffer_info | ( | uint32_t | buf_idx, |
const uint8_t ** | buff_data, | ||
bool & | ext_offset | ||
) |
Definition at line 82 of file Read.cpp.
References size.
|
inline |
tflite::BuiltinOperator tflread::Reader::builtin_code | ( | const tflite::Operator * | op | ) | const |
Definition at line 123 of file Read.cpp.
References mio::tflite::builtin_code_neutral().
Referenced by tfldump::dump_sub_graph().
|
inline |
Definition at line 65 of file Read.h.
Referenced by tfldump::dump_sub_graph(), validate_onnx2circle.OnnxRunner::feed_random_inputs(), and package.infer.session::set_inputs().
|
inline |
|
inline |
Definition at line 70 of file Read.h.
References flatbuffers::Vector< T >::size().
Referenced by tfldump::dump_model().
std::string tflread::Reader::opcode_name | ( | const tflite::Operator * | op | ) | const |
Definition at line 132 of file Read.cpp.
References mio::tflite::is_valid(), and mio::tflite::opcode_name().
Referenced by tfldump::dump_sub_graph().
|
inline |
Definition at line 61 of file Read.h.
Referenced by tfldump::dump_model(), Reader(), and Reader().
|
inline |
Definition at line 64 of file Read.h.
Referenced by tfldump::dump_sub_graph().
|
inline |
Definition at line 66 of file Read.h.
Referenced by tfldump::dump_sub_graph(), validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
bool tflread::Reader::select_subgraph | ( | uint32_t | subgraph | ) |
Definition at line 148 of file Read.cpp.
References tflread::as_index_vector(), and flatbuffers::Vector< T >::size().
Referenced by tfldump::dump_model().
|
inline |
Definition at line 68 of file Read.h.
Referenced by tfldump::dump_model().
|
inline |
Definition at line 80 of file Read.h.
Referenced by tfldump::dump_sub_graph().
|
inline |
Definition at line 79 of file Read.h.
Referenced by tfldump::dump_model().
|
inline |
Definition at line 63 of file Read.h.
Referenced by tfldump::dump_sub_graph().
|
inline |