31 uint32_t node_position = 0;
37 auto circle_node = loco::must_cast<luci::CircleNode *>(node);
38 circle_node->accept(&exporter_rule);
42 if (has_origin(circle_node) && ops_size != gd.
_operators.size())
45 for (
auto source : get_origin(circle_node)->sources())
55 std::vector<uint32_t> execution_plan_vector;
56 execution_plan_vector.push_back(execution_plan.order_in_plan());
57 for (
auto offset : execution_plan.offsets())
59 execution_plan_vector.push_back(
offset);
Helper class to hold data needed in creation of a FlatBuffer. To serialize data, you typically call o...
__global uchar * offset(const Image *img, int x, int y)
std::vector< loco::Node * > postorder_traversal(const std::vector< loco::Node * > &roots)
Generate postorder traversal sequence starting from "roots".
std::vector< Node * > output_nodes(Graph *)
void exportNodes(loco::Graph *g, flatbuffers::FlatBufferBuilder &builder, SerializedModelData &md, SerializedGraphData &gd)
create Operators corresponding to model nodes
bool has_execution_plan(const luci::CircleNode *circle_node)
luci::CircleNodeExecutionPlan get_execution_plan(const luci::CircleNode *circle_node)
std::vector< flatbuffers::Offset< circle::Operator > > _operators
CircleExportMetadata _metadata