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... | |
struct | TypeInference |
Get the type of each node as NodeAnnotation. More... | |
Typedefs | |
using | TFLTensorIndex = int32_t |
Functions | |
circle::Padding | getOpPadding (const loco::Padding2D *pad, const loco::Stride< 2 > *stride, const ShapeDescription &ifm, const ShapeDescription &ofm) |
circle::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::circle_detail::TFLTensorIndex = typedef int32_t |
Definition at line 112 of file CircleExporterUtils.h.
void exo::circle_detail::exportOpDefinedTensor | ( | const TFLTensorInfo & | info, |
FlatBufferBuilder & | builder, | ||
SerializedModelData & | gd | ||
) |
Definition at line 217 of file CircleTensorExporter.cpp.
References exo::circle_detail::SerializedModelData::_buffers, exo::circle_detail::SerializedModelData::_tensors, flatbuffers::FlatBufferBuilder::CreateString(), and info.
Referenced by exportOpDefinedTensors().
void exo::circle_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 236 of file CircleTensorExporter.cpp.
References exo::circle_detail::SerializedModelData::_buffers, exportOpDefinedTensor(), loco::output_nodes(), and loco::postorder_traversal().
TFLTensorIndex exo::circle_detail::get_tensor_index | ( | loco::Node * | node | ) |
Definition at line 155 of file CircleExporterUtils.cpp.
References loco::AnnotatedItem< Annotation >::annot().
circle::Padding exo::circle_detail::getOpPadding | ( | const loco::Padding2D * | pad, |
const loco::Stride< 2 > * | stride, | ||
const ShapeDescription & | ifm, | ||
const ShapeDescription & | ofm | ||
) |
Definition at line 66 of file CircleExporterUtils.cpp.
References exo::ShapeDescription::_dims, loco::Padding2D::bottom(), INTERNAL_EXN, loco::Padding2D::left(), loco::Padding2D::right(), and loco::Padding2D::top().
circle::Padding exo::circle_detail::getOpPadding | ( | const locoex::Padding | pad | ) |
Definition at line 95 of file CircleExporterUtils.cpp.
References INTERNAL_EXN_V, locoex::SAME, oops::to_uint32(), and locoex::VALID.
void exo::circle_detail::registerGraphIOName | ( | loco::Graph * | graph, |
SerializedModelData & | gd | ||
) |
Register graph input and output names to SerializedModelData.
Definition at line 105 of file CircleExporterUtils.cpp.
References exo::circle_detail::SubGraphContext::_data_format, exo::circle_detail::SerializedModelData::_pull_to_name, exo::circle_detail::SerializedModelData::_push_to_name, loco::pull_node(), loco::push_node(), and size.
void exo::circle_detail::set_tensor_index | ( | loco::Node * | node, |
const TFLTensorIndex & | tensor_id | ||
) |
Definition at line 149 of file CircleExporterUtils.cpp.
References loco::AnnotatedItem< Annotation >::annot().