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

tflchef operator builder for SpaceToDepth More...

#include <SpaceToDepth.h>

Collaboration diagram for tflchef::TFliteOpSpaceToDepth:

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 SpaceToDepth

Definition at line 28 of file SpaceToDepth.h.

Member Function Documentation

◆ build()

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

Implements tflchef::TFliteOpChef.

Definition at line 30 of file SpaceToDepth.cpp.

31{
32 tflchef::Operation *operation = ctx->chefop;
33 const tflite::Operator *op = ctx->tflop;
34
35 operation->set_type("SpaceToDepth");
36
37 auto op_params = op->builtin_options_as_SpaceToDepthOptions();
38 assert(op_params != nullptr);
39
40 auto op_options = operation->mutable_space_to_depth_options();
41
42 op_options->set_block_size(op_params->block_size());
43
44 return operation;
45}

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

◆ filler()

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

Implements tflchef::TFliteOpChef.

Definition at line 24 of file SpaceToDepth.cpp.

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

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