ONE - On-device Neural Engine
|
#include <SerializedData.h>
Public Types | |
using | BufferData = std::vector< uint8_t > |
using | MapBufferData = std::map< int32_t, BufferData > |
Public Member Functions | |
SerializedModelData ()=default | |
SerializedModelData (const SerializedModelData &)=delete | |
uint32_t | registerBuiltinOpcode (circle::BuiltinOperator builtin_code, const std::string &custom_code, const int32_t op_version) |
if opcode is not registered in table of opcodes add it | |
void | clear (void) |
Data Fields | |
std::unordered_map< OpCode, uint32_t > | _operator_codes |
std::vector< flatbuffers::Offset< circle::Buffer > > | _buffers |
flatbuffers::Offset< circle::Buffer > | _empty_buffer |
CircleExportMetadata | _metadata |
std::map< luci::CircleConst *, uint32_t > | _cached_buffer_id |
bool | _ext_buffer = false |
bool | _require_ext_buffer = false |
MapBufferData | _buffer_data_map |
Definition at line 119 of file SerializedData.h.
using luci::SerializedModelData::BufferData = std::vector<uint8_t> |
Definition at line 137 of file SerializedData.h.
using luci::SerializedModelData::MapBufferData = std::map<int32_t, BufferData> |
Definition at line 138 of file SerializedData.h.
|
default |
|
delete |
void luci::SerializedModelData::clear | ( | void | ) |
Definition at line 29 of file SerializedData.cpp.
References _buffer_data_map, _buffers, _cached_buffer_id, _ext_buffer, _metadata, _operator_codes, _require_ext_buffer, and luci::CircleExportMetadata::clear().
Referenced by luci::prepareModelData().
uint32_t luci::SerializedModelData::registerBuiltinOpcode | ( | circle::BuiltinOperator | builtin_code, |
const std::string & | custom_code, | ||
const int32_t | op_version | ||
) |
if opcode is not registered in table of opcodes add it
builtin_code |
Definition at line 233 of file CircleExporterUtils.cpp.
References _operator_codes.
Referenced by luci::OperationExporterRule::visit().
MapBufferData luci::SerializedModelData::_buffer_data_map |
Definition at line 140 of file SerializedData.h.
Referenced by clear().
std::vector<flatbuffers::Offset<circle::Buffer> > luci::SerializedModelData::_buffers |
Definition at line 125 of file SerializedData.h.
Referenced by clear(), and luci::prepareModelData().
std::map<luci::CircleConst *, uint32_t> luci::SerializedModelData::_cached_buffer_id |
Definition at line 130 of file SerializedData.h.
Referenced by clear().
flatbuffers::Offset<circle::Buffer> luci::SerializedModelData::_empty_buffer |
Definition at line 126 of file SerializedData.h.
Referenced by luci::prepareModelData().
bool luci::SerializedModelData::_ext_buffer = false |
Definition at line 133 of file SerializedData.h.
Referenced by clear().
CircleExportMetadata luci::SerializedModelData::_metadata |
Definition at line 127 of file SerializedData.h.
Referenced by clear(), luci::createCircleMetadataVector(), and luci::exportNodes().
std::unordered_map<OpCode, uint32_t> luci::SerializedModelData::_operator_codes |
Definition at line 124 of file SerializedData.h.
Referenced by clear(), and registerBuiltinOpcode().
bool luci::SerializedModelData::_require_ext_buffer = false |
Definition at line 135 of file SerializedData.h.
Referenced by clear().