ONE - On-device Neural Engine
|
Data Structures | |
struct | OpCode |
struct | SerializedModelData |
struct | SubGraphContext |
Record the information of T/F Lite SubGraph and its mapping to loco. More... | |
Typedefs | |
using | TFLTensorIndex = int32_t |
Functions | |
tflite::Padding | getOpPadding (const loco::Padding2D *pad, const loco::Stride< 2 > *stride, const ShapeDescription &ifm, const ShapeDescription &ofm) |
tflite::Padding | getOpPadding (const locoex::Padding pad) |
void | registerGraphIOName (loco::Graph *graph, SerializedModelData &gd) |
Register graph input and output names to SerializedModelData. | |
void | set_tensor_index (loco::Node *node, const TFLTensorIndex &tensor_id) |
TFLTensorIndex | get_tensor_index (loco::Node *node) |
void | exportOpDefinedTensor (const TFLTensorInfo &info, FlatBufferBuilder &builder, SerializedModelData &gd) |
void | exportOpDefinedTensors (loco::Graph *g, flatbuffers::FlatBufferBuilder &builder, SerializedModelData &gd) |
create Tensors corresponding to results of all nodes in graph | |
using exo::tflite_detail::TFLTensorIndex = typedef int32_t |
Definition at line 110 of file TFLExporterUtils.h.
void exo::tflite_detail::exportOpDefinedTensor | ( | const TFLTensorInfo & | info, |
FlatBufferBuilder & | builder, | ||
SerializedModelData & | gd | ||
) |
Definition at line 209 of file TFLTensorExporter.cpp.
References exo::tflite_detail::SerializedModelData::_buffers, exo::tflite_detail::SerializedModelData::_tensors, flatbuffers::FlatBufferBuilder::CreateString(), and info.
Referenced by exportOpDefinedTensors().
void exo::tflite_detail::exportOpDefinedTensors | ( | loco::Graph * | g, |
flatbuffers::FlatBufferBuilder & | builder, | ||
SerializedModelData & | gd | ||
) |
create Tensors corresponding to results of all nodes in graph
computational | graph |
gd | information about serialized parts of model |
Definition at line 228 of file TFLTensorExporter.cpp.
References exo::tflite_detail::SerializedModelData::_buffers, exportOpDefinedTensor(), loco::output_nodes(), and loco::postorder_traversal().
TFLTensorIndex exo::tflite_detail::get_tensor_index | ( | loco::Node * | node | ) |
Definition at line 152 of file TFLExporterUtils.cpp.
References loco::AnnotatedItem< Annotation >::annot().
tflite::Padding exo::tflite_detail::getOpPadding | ( | const loco::Padding2D * | pad, |
const loco::Stride< 2 > * | stride, | ||
const ShapeDescription & | ifm, | ||
const ShapeDescription & | ofm | ||
) |
Definition at line 66 of file TFLExporterUtils.cpp.
References exo::ShapeDescription::_dims, loco::Padding2D::bottom(), INTERNAL_EXN, loco::Padding2D::left(), loco::Padding2D::right(), and loco::Padding2D::top().
tflite::Padding exo::tflite_detail::getOpPadding | ( | const locoex::Padding | pad | ) |
Definition at line 95 of file TFLExporterUtils.cpp.
References INTERNAL_EXN_V, locoex::SAME, oops::to_uint32(), and locoex::VALID.
void exo::tflite_detail::registerGraphIOName | ( | loco::Graph * | graph, |
SerializedModelData & | gd | ||
) |
Register graph input and output names to SerializedModelData.
Definition at line 105 of file TFLExporterUtils.cpp.
References exo::tflite_detail::SerializedModelData::_pull_to_name, exo::tflite_detail::SerializedModelData::_push_to_name, loco::pull_node(), loco::push_node(), and size.
void exo::tflite_detail::set_tensor_index | ( | loco::Node * | node, |
const TFLTensorIndex & | tensor_id | ||
) |
Definition at line 146 of file TFLExporterUtils.cpp.
References loco::AnnotatedItem< Annotation >::annot().