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

tflchef operator builder for Unpack More...

#include <Unpack.h>

Collaboration diagram for tflchef::TFliteOpUnpack:

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 Unpack

Definition at line 28 of file Unpack.h.

Member Function Documentation

◆ build()

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

Implements tflchef::TFliteOpChef.

Definition at line 28 of file Unpack.cpp.

29{
30 tflchef::Operation *operation = ctx->chefop;
31 const tflite::Operator *op = ctx->tflop;
32
33 operation->set_type("Unpack");
34
35 auto op_params = op->builtin_options_as_UnpackOptions();
36 assert(op_params != nullptr);
37
38 auto op_options = operation->mutable_unpack_options();
39 op_options->set_num(op_params->num());
40 op_options->set_axis(op_params->axis());
41
42 return operation;
43}

References tflchef::RecipeChefContext::chefop, and tflchef::RecipeChefContext::tflop.

◆ filler()

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

Implements tflchef::TFliteOpChef.

Definition at line 22 of file Unpack.cpp.

24{
25 // Nothing to do with filler
26}

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