21 assert(_operation->has_gelu_options());
23 const auto &options = _operation->gelu_options();
25 tflite::GeluOptionsBuilder options_builder{fbb};
26 options_builder.add_approximate(options.approximate());
28 return options_builder.
Finish().Union();
33 return std::unique_ptr<OpChef>{
new GeluChef{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