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

tflchef operator builder for BATCH_MATMUL More...

#include <BatchMatMul.h>

Collaboration diagram for tflchef::TFliteOpBatchMatMul:

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 BATCH_MATMUL

Definition at line 28 of file BatchMatMul.h.

Member Function Documentation

◆ build()

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

Implements tflchef::TFliteOpChef.

Definition at line 30 of file BatchMatMul.cpp.

31{
32 tflchef::Operation *operation = ctx->chefop;
33 const tflite::Operator *op = ctx->tflop;
34
35 operation->set_type("BatchMatMul");
36
37 auto op_options = operation->mutable_batch_matmul_options();
38
39 auto op_params = op->builtin_options_as_BatchMatMulOptions();
40 assert(op_params != nullptr);
41
42 op_options->set_adj_x(op_params->adj_x());
43 op_options->set_adj_y(op_params->adj_y());
44
45 return operation;
46}

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

◆ filler()

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

Implements tflchef::TFliteOpChef.

Definition at line 24 of file BatchMatMul.cpp.

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

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