21 auto &operation = (*_operation);
23 assert(operation.has_if_options());
25 tflite::IfOptionsBuilder if_options_builder{fbb};
26 if_options_builder.add_then_subgraph_index(operation.if_options().then_subgraph_index());
27 if_options_builder.add_else_subgraph_index(operation.if_options().else_subgraph_index());
29 return if_options_builder.
Finish().Union();
34 return std::unique_ptr<OpChef>{
new IfChef{operation}};
flatbuffers::Offset< void > value(flatbuffers::FlatBufferBuilder &fbb) const override
Helper class to hold data needed in creation of a FlatBuffer. To serialize data, you typically call o...
void Finish(Offset< T > root, const char *file_identifier=nullptr)
Finish serializing a buffer by writing the root offset.
std::unique_ptr< OpChef > create(const tflchef::Operation *operation) const override