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

tflchef operator builder for ScatterNd More...

#include <ScatterNd.h>

Collaboration diagram for tflchef::TFliteOpScatterNd:

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 ScatterNd

Definition at line 28 of file ScatterNd.h.

Member Function Documentation

◆ build()

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

Implements tflchef::TFliteOpChef.

Definition at line 35 of file ScatterNd.cpp.

36{
37 tflchef::Operation *operation = ctx->chefop;
38 const tflite::Operator *op = ctx->tflop;
39
40 operation->set_type("ScatterNd");
41
42 return operation;
43}

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

◆ filler()

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

Implements tflchef::TFliteOpChef.

Definition at line 25 of file ScatterNd.cpp.

27{
28 const std::vector<int32_t> &inputs = as_index_vector(op->inputs());
29
30 // Filler for indices and shape
31 fill_tensor_to_import(inputs[0], import);
32 fill_tensor_to_import(inputs[2], import);
33}
std::vector< T > as_index_vector(const flatbuffers::Vector< T > *flat_array)
Definition Convert.h:47
void fill_tensor_to_import(int32_t idx, TFliteImport *import)

References tflchef::as_index_vector(), and tflchef::fill_tensor_to_import().


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