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

tflchef operator builder for Less More...

#include <Less.h>

Collaboration diagram for tflchef::TFliteOpLess:

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 Less

Definition at line 28 of file Less.h.

Member Function Documentation

◆ build()

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

Implements tflchef::TFliteOpChef.

Definition at line 36 of file Less.cpp.

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

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

◆ filler()

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

Implements tflchef::TFliteOpChef.

Definition at line 25 of file Less.cpp.

27{
28 const auto &inputs = *op->inputs();
29
30 for (int input : inputs)
31 {
32 fill_tensor_to_import(input, import);
33 }
34}
void fill_tensor_to_import(int32_t idx, TFliteImport *import)

References tflchef::fill_tensor_to_import().


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