ONE - On-device Neural Engine
Loading...
Searching...
No Matches
tflchef::TFliteOpConcatenation Class Reference

tflchef operator builder for Concatenation More...

#include <Concatenation.h>

Collaboration diagram for tflchef::TFliteOpConcatenation:

Public Member Functions

void filler (const tflite::Operator *op, TFliteImport *import, tflchef::ModelRecipe *model_recipe) const override
 
tflchef::Operation * build (RecipeChefContext *ctx) const override
 
- Public Member Functions inherited from tflchef::TFliteOpChef
virtual ~TFliteOpChef ()
 

Detailed Description

tflchef operator builder for Concatenation

Definition at line 28 of file Concatenation.h.

Member Function Documentation

◆ build()

tflchef::Operation * tflchef::TFliteOpConcatenation::build ( RecipeChefContext ctx) const
overridevirtual

Implements tflchef::TFliteOpChef.

Definition at line 30 of file Concatenation.cpp.

31{
32 tflchef::Operation *operation = ctx->chefop;
33 const tflite::Operator *op = ctx->tflop;
34
35 auto op_params = op->builtin_options_as_ConcatenationOptions();
36 assert(op_params != nullptr);
37
38 operation->set_type("Concatenation");
39
40 auto op_options = operation->mutable_concatenation_options();
41
42 op_options->set_axis(op_params->axis());
43 op_options->set_activation(as_tflchef_activation(op_params->fused_activation_function()));
44
45 return operation;
46}
tflchef::Activation as_tflchef_activation(const tflite::ActivationFunctionType type)
Definition Convert.cpp:50

References tflchef::as_tflchef_activation(), tflchef::RecipeChefContext::chefop, and tflchef::RecipeChefContext::tflop.

◆ filler()

void tflchef::TFliteOpConcatenation::filler ( const tflite::Operator *  op,
TFliteImport import,
tflchef::ModelRecipe *  model_recipe 
) const
overridevirtual

Implements tflchef::TFliteOpChef.

Definition at line 24 of file Concatenation.cpp.

26{
27 // Nothing to do with filler
28}

The documentation for this class was generated from the following files: