ONE - On-device Neural Engine
|
Loads Circle file and provides helpers to access attributes. More...
#include <Reader.h>
Public Member Functions | |
Reader (const ::circle::Model *model) | |
Reader ()=delete | |
uint32_t | version () const |
const std::vector< const ::circle::OperatorCode * > & | opcodes () |
const CircleBuffers_t * | buffers () |
const CircleTensors_t * | tensors () |
const CircleOperators_t * | operators () |
const std::vector< int32_t > & | inputs () const |
const std::vector< int32_t > & | outputs () const |
const ::circle::DataFormat & | data_format () const |
const CircleMetadata_t * | metadata () const |
const CircleSignatureDef_t * | signature_defs () const |
uint32_t | num_subgraph () const |
size_t | buffer_info (uint32_t buf_idx, const uint8_t **buff_data) |
::circle::BuiltinOperator | builtin_code (const ::circle::Operator *op) const |
std::string | opcode_name (const ::circle::Operator *op) const |
std::vector< int32_t > | outputs (const ::circle::Operator *op) const |
std::string | tensor_name (const ::circle::Tensor *tensor) const |
std::string | tensor_dtype (const ::circle::Tensor *tensor) const |
bool | select_subgraph (uint32_t subgraph) |
const std::string & | subgraph_name (void) const |
uint32_t | subgraph_index (void) const |
Reader (const ::circle::Model *model) | |
Reader ()=delete | |
uint32_t | version () const |
const std::vector< const ::circle::OperatorCode * > & | opcodes () |
const CircleBuffers_t * | buffers () |
const CircleTensors_t * | tensors () |
const CircleOperators_t * | operators () |
const std::vector< int32_t > & | inputs () const |
const std::vector< int32_t > & | outputs () const |
const ::circle::DataFormat & | data_format () const |
const CircleMetadata_t * | metadata () const |
const CircleSignatureDef_t * | signature_defs () const |
uint32_t | num_subgraph () const |
size_t | buffer_info (uint32_t buf_idx, const uint8_t **buff_data) |
::circle::BuiltinOperator | builtin_code (const ::circle::Operator *op) const |
std::string | opcode_name (const ::circle::Operator *op) const |
std::vector< int32_t > | outputs (const ::circle::Operator *op) const |
std::string | tensor_name (const ::circle::Tensor *tensor) const |
std::string | tensor_dtype (const ::circle::Tensor *tensor) const |
bool | select_subgraph (uint32_t subgraph) |
const std::string & | subgraph_name (void) const |
uint32_t | subgraph_index (void) const |
Reader (const ::circle::Model *model) | |
Reader ()=delete | |
uint32_t | version () const |
const std::vector< const ::circle::OperatorCode * > & | opcodes () |
const CircleBuffers_t * | buffers () |
const CircleTensors_t * | tensors () |
const CircleOperators_t * | operators () |
const std::vector< int32_t > & | inputs () const |
const std::vector< int32_t > & | outputs () const |
const ::circle::DataFormat & | data_format () const |
const CircleMetadata_t * | metadata () const |
const CircleSignatureDef_t * | signature_defs () const |
uint32_t | num_subgraph () const |
size_t | buffer_info (uint32_t buf_idx, const uint8_t **buff_data) |
::circle::BuiltinOperator | builtin_code (const ::circle::Operator *op) const |
std::string | opcode_name (const ::circle::Operator *op) const |
std::vector< int32_t > | outputs (const ::circle::Operator *op) const |
std::string | tensor_name (const ::circle::Tensor *tensor) const |
std::string | tensor_dtype (const ::circle::Tensor *tensor) const |
bool | select_subgraph (uint32_t subgraph) |
const std::string & | subgraph_name (void) const |
uint32_t | subgraph_index (void) const |
Reader (const ::circle::Model *model) | |
Reader ()=delete | |
uint32_t | version () const |
const std::vector< const ::circle::OperatorCode * > & | opcodes () |
const CircleBuffers_t * | buffers () |
const CircleTensors_t * | tensors () |
const CircleOperators_t * | operators () |
const std::vector< int32_t > & | inputs () const |
const std::vector< int32_t > & | outputs () const |
const CircleMetadata_t * | metadata () const |
const CircleSignatureDef_t * | signature_defs () const |
uint32_t | num_subgraph () const |
size_t | buffer_info (uint32_t buf_idx, const uint8_t **buff_data) |
::circle::BuiltinOperator | builtin_code (const ::circle::Operator *op) const |
std::string | opcode_name (const ::circle::Operator *op) const |
std::vector< int32_t > | outputs (const ::circle::Operator *op) const |
std::string | tensor_name (const ::circle::Tensor *tensor) const |
std::string | tensor_dtype (const ::circle::Tensor *tensor) const |
bool | select_subgraph (uint32_t subgraph) |
const std::string & | subgraph_name (void) const |
uint32_t | subgraph_index (void) const |
Reader (const ::circle::Model *model) | |
Reader (const ::circle::Model *model, const std::vector< char > *rawdata) | |
Reader ()=delete | |
uint32_t | version () const |
const std::vector< const ::circle::OperatorCode * > & | opcodes () |
const CircleBuffers_t * | buffers () |
const CircleTensors_t * | tensors () |
const CircleOperators_t * | operators () |
const std::vector< int32_t > & | inputs () const |
const std::vector< int32_t > & | outputs () const |
const CircleMetadata_t * | metadata () const |
const CircleSignatureDef_t * | signature_defs () 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) |
::circle::BuiltinOperator | builtin_code (const ::circle::Operator *op) const |
std::string | opcode_name (const ::circle::Operator *op) const |
std::vector< int32_t > | outputs (const ::circle::Operator *op) const |
std::string | tensor_name (const ::circle::Tensor *tensor) const |
std::string | tensor_dtype (const ::circle::Tensor *tensor) const |
bool | select_subgraph (uint32_t subgraph) |
const std::string & | subgraph_name (void) const |
uint32_t | subgraph_index (void) const |
Loads Circle file and provides helpers to access attributes.
mio::circle::Reader::Reader | ( | const ::circle::Model * | model | ) |
Definition at line 28 of file Reader.cpp.
References opcodes().
|
delete |
mio::circle::Reader::Reader | ( | const ::circle::Model * | model | ) |
|
delete |
mio::circle::Reader::Reader | ( | const ::circle::Model * | model | ) |
|
delete |
mio::circle::Reader::Reader | ( | const ::circle::Model * | model | ) |
|
delete |
mio::circle::Reader::Reader | ( | const ::circle::Model * | model | ) |
mio::circle::Reader::Reader | ( | const ::circle::Model * | model, |
const std::vector< char > * | rawdata | ||
) |
Definition at line 49 of file Reader.cpp.
References opcodes().
|
delete |
size_t mio::circle::Reader::buffer_info | ( | uint32_t | buf_idx, |
const uint8_t ** | buff_data | ||
) |
Definition at line 48 of file Reader.cpp.
References size.
Referenced by circledump::dump_model(), and circleinspect::DumpConstants::run().
size_t mio::circle::Reader::buffer_info | ( | uint32_t | buf_idx, |
const uint8_t ** | buff_data | ||
) |
size_t mio::circle::Reader::buffer_info | ( | uint32_t | buf_idx, |
const uint8_t ** | buff_data | ||
) |
size_t mio::circle::Reader::buffer_info | ( | uint32_t | buf_idx, |
const uint8_t ** | buff_data | ||
) |
size_t mio::circle::Reader::buffer_info | ( | uint32_t | buf_idx, |
const uint8_t ** | buff_data | ||
) |
size_t mio::circle::Reader::buffer_info | ( | uint32_t | buf_idx, |
const uint8_t ** | buff_data, | ||
bool & | ext_offset | ||
) |
Definition at line 101 of file Reader.cpp.
References size.
|
inline |
Definition at line 57 of file Reader.h.
Referenced by circledump::dump_model(), circletensordump::DumpTensors::run(), and circletensordump::DumpTensorsToHdf5::run().
|
inline |
|
inline |
|
inline |
|
inline |
circle::BuiltinOperator mio::circle::Reader::builtin_code | ( | const ::circle::Operator * | op | ) | const |
Definition at line 76 of file Reader.cpp.
References mio::circle::builtin_code_neutral().
Referenced by circledump::dump_sub_graph(), and circleinspect::DumpConv2DWeight::run().
::circle::BuiltinOperator mio::circle::Reader::builtin_code | ( | const ::circle::Operator * | op | ) | const |
::circle::BuiltinOperator mio::circle::Reader::builtin_code | ( | const ::circle::Operator * | op | ) | const |
::circle::BuiltinOperator mio::circle::Reader::builtin_code | ( | const ::circle::Operator * | op | ) | const |
::circle::BuiltinOperator mio::circle::Reader::builtin_code | ( | const ::circle::Operator * | op | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 60 of file Reader.h.
Referenced by circledump::dump_sub_graph(), validate_onnx2circle.OnnxRunner::feed_random_inputs(), and package.infer.session::set_inputs().
|
inline |
Definition at line 60 of file Reader.h.
Referenced by validate_onnx2circle.OnnxRunner::feed_random_inputs(), and package.infer.session::set_inputs().
|
inline |
Definition at line 60 of file Reader.h.
Referenced by validate_onnx2circle.OnnxRunner::feed_random_inputs(), and package.infer.session::set_inputs().
|
inline |
Definition at line 60 of file Reader.h.
Referenced by validate_onnx2circle.OnnxRunner::feed_random_inputs(), and package.infer.session::set_inputs().
|
inline |
Definition at line 61 of file Reader.h.
Referenced by validate_onnx2circle.OnnxRunner::feed_random_inputs(), and package.infer.session::set_inputs().
|
inline |
Definition at line 63 of file Reader.h.
Referenced by circledump::dump_model().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 66 of file Reader.h.
Referenced by circledump::dump_model(), cirops::DumpOperators::run(), circletensordump::DumpTensors::run(), circletensordump::DumpTensorsToHdf5::run(), circleinspect::DumpOperators::run(), circleinspect::DumpConv2DWeight::run(), circleinspect::DumpOperatorVersion::run(), circleinspect::DumpTensorDType::run(), circleinspect::DumpConstants::run(), and circleinspect::DumpTensorShape::run().
|
inline |
|
inline |
|
inline |
|
inline |
std::string mio::circle::Reader::opcode_name | ( | const ::circle::Operator * | op | ) | const |
Definition at line 85 of file Reader.cpp.
References mio::circle::is_valid(), and mio::circle::opcode_name().
Referenced by circledump::dump_sub_graph(), circleinspect::DumpOperators::run(), circleinspect::DumpConv2DWeight::run(), and circleinspect::DumpOperatorVersion::run().
std::string mio::circle::Reader::opcode_name | ( | const ::circle::Operator * | op | ) | const |
std::string mio::circle::Reader::opcode_name | ( | const ::circle::Operator * | op | ) | const |
std::string mio::circle::Reader::opcode_name | ( | const ::circle::Operator * | op | ) | const |
std::string mio::circle::Reader::opcode_name | ( | const ::circle::Operator * | op | ) | const |
|
inline |
Definition at line 56 of file Reader.h.
Referenced by circledump::dump_model(), Reader(), Reader(), and circleinspect::DumpOperatorVersion::run().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 59 of file Reader.h.
Referenced by circledump::dump_sub_graph(), circleinspect::DumpOperators::run(), circleinspect::DumpConv2DWeight::run(), and circleinspect::DumpOperatorVersion::run().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 61 of file Reader.h.
Referenced by circledump::dump_sub_graph(), validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
|
inline |
Definition at line 61 of file Reader.h.
Referenced by validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
|
inline |
Definition at line 61 of file Reader.h.
Referenced by validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
|
inline |
Definition at line 61 of file Reader.h.
Referenced by validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
|
inline |
Definition at line 62 of file Reader.h.
Referenced by validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
std::vector< int32_t > mio::circle::Reader::outputs | ( | const ::circle::Operator * | op | ) | const |
Definition at line 101 of file Reader.cpp.
References mio::circle::as_index_vector().
Referenced by validate_onnx2circle.OnnxRunner::get_outputs(), package.infer.session::inference(), and package.infer.session::set_outputs().
std::vector< int32_t > mio::circle::Reader::outputs | ( | const ::circle::Operator * | op | ) | const |
std::vector< int32_t > mio::circle::Reader::outputs | ( | const ::circle::Operator * | op | ) | const |
std::vector< int32_t > mio::circle::Reader::outputs | ( | const ::circle::Operator * | op | ) | const |
std::vector< int32_t > mio::circle::Reader::outputs | ( | const ::circle::Operator * | op | ) | const |
bool mio::circle::Reader::select_subgraph | ( | uint32_t | subgraph | ) |
Definition at line 116 of file Reader.cpp.
References mio::circle::as_index_vector().
Referenced by circledump::dump_model(), cirops::DumpOperators::run(), circletensordump::DumpTensors::run(), circletensordump::DumpTensorsToHdf5::run(), circleinspect::DumpOperators::run(), circleinspect::DumpConv2DWeight::run(), circleinspect::DumpOperatorVersion::run(), circleinspect::DumpTensorDType::run(), circleinspect::DumpConstants::run(), and circleinspect::DumpTensorShape::run().
bool mio::circle::Reader::select_subgraph | ( | uint32_t | subgraph | ) |
bool mio::circle::Reader::select_subgraph | ( | uint32_t | subgraph | ) |
bool mio::circle::Reader::select_subgraph | ( | uint32_t | subgraph | ) |
bool mio::circle::Reader::select_subgraph | ( | uint32_t | subgraph | ) |
|
inline |
Definition at line 64 of file Reader.h.
Referenced by circledump::dump_model().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 78 of file Reader.h.
Referenced by circledump::dump_sub_graph().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 77 of file Reader.h.
Referenced by circledump::dump_model().
|
inline |
|
inline |
|
inline |
|
inline |
std::string mio::circle::Reader::tensor_dtype | ( | const ::circle::Tensor * | tensor | ) | const |
Definition at line 111 of file Reader.cpp.
References mio::circle::tensor_type().
Referenced by circleinspect::DumpTensorDType::run().
std::string mio::circle::Reader::tensor_dtype | ( | const ::circle::Tensor * | tensor | ) | const |
std::string mio::circle::Reader::tensor_dtype | ( | const ::circle::Tensor * | tensor | ) | const |
std::string mio::circle::Reader::tensor_dtype | ( | const ::circle::Tensor * | tensor | ) | const |
std::string mio::circle::Reader::tensor_dtype | ( | const ::circle::Tensor * | tensor | ) | const |
std::string mio::circle::Reader::tensor_name | ( | const ::circle::Tensor * | tensor | ) | const |
Definition at line 106 of file Reader.cpp.
References mio::circle::tensor_name().
Referenced by circleinspect::DumpTensorDType::run(), circleinspect::DumpConstants::run(), and circleinspect::DumpTensorShape::run().
std::string mio::circle::Reader::tensor_name | ( | const ::circle::Tensor * | tensor | ) | const |
std::string mio::circle::Reader::tensor_name | ( | const ::circle::Tensor * | tensor | ) | const |
std::string mio::circle::Reader::tensor_name | ( | const ::circle::Tensor * | tensor | ) | const |
std::string mio::circle::Reader::tensor_name | ( | const ::circle::Tensor * | tensor | ) | const |
|
inline |
Definition at line 58 of file Reader.h.
Referenced by circledump::dump_sub_graph(), circletensordump::DumpTensors::run(), circletensordump::DumpTensorsToHdf5::run(), circleinspect::DumpTensorDType::run(), circleinspect::DumpConstants::run(), and circleinspect::DumpTensorShape::run().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 54 of file Reader.h.
Referenced by circledump::dump_model().
|
inline |
|
inline |
|
inline |
|
inline |