Default fallback.
251{
254
255 std::vector<int32_t> inputs_vec;
256 for (uint32_t i = 0; i < node->arity(); ++i)
259
260 OutputVectorExtractor outputs_vec_extractor;
261 auto outputs_vec = node->accept(&outputs_vec_extractor);
263
265
267 auto options_offset = node->accept(&builtin_options_extractor);
268
269
271
272 auto op_offset = circle::CreateOperator(
_ctx.
builder, op_idx, inputs, outputs, builtin_options,
273 options_offset, custom_options);
275}
Offset< Vector< T > > CreateVector(const T *v, size_t len)
Serialize an array into a FlatBuffer vector.
circle::BuiltinOptions circle_builtin_options(const luci::CircleNode *node)
flatbuffers::Offset< flatbuffers::Vector< uint8_t > > circle_custom_options(flatbuffers::FlatBufferBuilder &fb, const luci::CircleNode *node)
CircleTensorIndex get_tensor_index(loco::Node *node)
circle::BuiltinOperator circle_builtin_operator(const luci::CircleNode *node)
std::string circle_custom_code(const luci::CircleNode *node)
luci::SerializedGraphData & gd
flatbuffers::FlatBufferBuilder & builder
luci::SerializedModelData & md
std::vector< flatbuffers::Offset< circle::Operator > > _operators
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