ONE - On-device Neural Engine
|
#include <TFLExporterUtils.h>
Public Member Functions | |
SerializedModelData ()=default | |
SerializedModelData (const SerializedModelData &)=delete | |
uint32_t | registerBuiltinOpcode (tflite::BuiltinOperator builtin_code) |
if opcode is not registered in table of opcodes add it | |
uint32_t | registerCustomOpcode (const std::string &custom_op) |
Data Fields | |
std::unordered_map< OpCode, uint32_t > | _operator_codes |
std::unordered_map< OpCode, std::string > | _custom_operator_codes |
std::vector< flatbuffers::Offset< tflite::Operator > > | _operators |
std::vector< flatbuffers::Offset< tflite::Tensor > > | _tensors |
std::vector< flatbuffers::Offset< tflite::Buffer > > | _buffers |
std::unordered_map< loco::Pull *, std::string > | _pull_to_name |
std::unordered_map< loco::Push *, std::string > | _push_to_name |
Data Fields inherited from exo::tflite_detail::SubGraphContext | |
std::vector< int32_t > | _inputs |
SubGraph input tensor id. | |
std::vector< int32_t > | _outputs |
SubGraph output tensor id. | |
Definition at line 79 of file TFLExporterUtils.h.
|
default |
|
delete |
uint32_t exo::tflite_detail::SerializedModelData::registerBuiltinOpcode | ( | tflite::BuiltinOperator | builtin_code | ) |
if opcode is not registered in table of opcodes add it
builtin_code |
Definition at line 46 of file TFLExporterUtils.cpp.
References _operator_codes.
Referenced by registerCustomOpcode().
uint32_t exo::tflite_detail::SerializedModelData::registerCustomOpcode | ( | const std::string & | custom_op | ) |
Definition at line 58 of file TFLExporterUtils.cpp.
References _custom_operator_codes, and registerBuiltinOpcode().
std::vector<flatbuffers::Offset<tflite::Buffer> > exo::tflite_detail::SerializedModelData::_buffers |
Definition at line 88 of file TFLExporterUtils.h.
Referenced by exo::tflite_detail::exportOpDefinedTensor(), and exo::tflite_detail::exportOpDefinedTensors().
std::unordered_map<OpCode, std::string> exo::tflite_detail::SerializedModelData::_custom_operator_codes |
Definition at line 85 of file TFLExporterUtils.h.
Referenced by registerCustomOpcode().
std::unordered_map<OpCode, uint32_t> exo::tflite_detail::SerializedModelData::_operator_codes |
Definition at line 84 of file TFLExporterUtils.h.
Referenced by registerBuiltinOpcode().
std::vector<flatbuffers::Offset<tflite::Operator> > exo::tflite_detail::SerializedModelData::_operators |
Definition at line 86 of file TFLExporterUtils.h.
std::unordered_map<loco::Pull *, std::string> exo::tflite_detail::SerializedModelData::_pull_to_name |
Definition at line 91 of file TFLExporterUtils.h.
Referenced by exo::tflite_detail::registerGraphIOName().
std::unordered_map<loco::Push *, std::string> exo::tflite_detail::SerializedModelData::_push_to_name |
Definition at line 92 of file TFLExporterUtils.h.
Referenced by exo::tflite_detail::registerGraphIOName().
std::vector<flatbuffers::Offset<tflite::Tensor> > exo::tflite_detail::SerializedModelData::_tensors |
Definition at line 87 of file TFLExporterUtils.h.
Referenced by exo::tflite_detail::exportOpDefinedTensor().