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

tflchef operator builder for BroadcastTo More...

#include <BroadcastTo.h>

Collaboration diagram for tflchef::TFliteOpBroadcastTo:

Public Member Functions

void filler (const tflite::Operator *op, TFliteImport *import, tflchef::ModelRecipe *mode_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 BroadcastTo

Definition at line 28 of file BroadcastTo.h.

Member Function Documentation

◆ build()

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

Implements tflchef::TFliteOpChef.

Definition at line 34 of file BroadcastTo.cpp.

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

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

◆ filler()

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

Implements tflchef::TFliteOpChef.

Definition at line 25 of file BroadcastTo.cpp.

27{
28 const std::vector<int32_t> &inputs = as_index_vector(op->inputs());
29
30 assert(inputs.size() == 2);
31 fill_tensor_to_import(inputs[1], import);
32}
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: