ONE - On-device Neural Engine
Loading...
Searching...
No Matches
BatchMatMulChef Class Referencefinal

#include <BatchMatMul.h>

Collaboration diagram for BatchMatMulChef:

Public Member Functions

 BatchMatMulChef (const circlechef::Operation *operation)
 
circle::BuiltinOperator code (void) const override
 
circle::BuiltinOptions type (void) const override
 
flatbuffers::Offset< void > value (flatbuffers::FlatBufferBuilder &fbb) const override
 
 BatchMatMulChef (const tflchef::Operation *operation)
 
tflite::BuiltinOperator code (void) const override
 
tflite::BuiltinOptions type (void) const override
 
flatbuffers::Offset< void > value (flatbuffers::FlatBufferBuilder &fbb) const override
 
- Public Member Functions inherited from OpChef
virtual ~OpChef ()=default
 
virtual flatbuffers::Offset< flatbuffers::Vector< uint8_t > > custom_value (flatbuffers::FlatBufferBuilder &fbb) const
 
virtual ~OpChef ()=default
 
virtual flatbuffers::Offset< flatbuffers::Vector< uint8_t > > custom_value (flatbuffers::FlatBufferBuilder &fbb) const
 

Detailed Description

Definition at line 22 of file BatchMatMul.h.

Constructor & Destructor Documentation

◆ BatchMatMulChef() [1/2]

BatchMatMulChef::BatchMatMulChef ( const circlechef::Operation *  operation)
inlineexplicit

Definition at line 25 of file BatchMatMul.h.

25 : _operation{operation}
26 {
27 // DO NOTHING
28 }

◆ BatchMatMulChef() [2/2]

BatchMatMulChef::BatchMatMulChef ( const tflchef::Operation *  operation)
inlineexplicit

Definition at line 25 of file BatchMatMul.h.

25 : _operation{operation}
26 {
27 // DO NOTHING
28 }

Member Function Documentation

◆ code() [1/2]

circle::BuiltinOperator BatchMatMulChef::code ( void  ) const
inlineoverridevirtual

Implements OpChef.

Definition at line 31 of file BatchMatMul.h.

31{ return circle::BuiltinOperator_BATCH_MATMUL; }

◆ code() [2/2]

tflite::BuiltinOperator BatchMatMulChef::code ( void  ) const
inlineoverridevirtual

Implements OpChef.

Definition at line 31 of file BatchMatMul.h.

31{ return tflite::BuiltinOperator_BATCH_MATMUL; }

◆ type() [1/2]

circle::BuiltinOptions BatchMatMulChef::type ( void  ) const
inlineoverridevirtual

Implements OpChef.

Definition at line 33 of file BatchMatMul.h.

34 {
35 return circle::BuiltinOptions_BatchMatMulOptions;
36 }

◆ type() [2/2]

tflite::BuiltinOptions BatchMatMulChef::type ( void  ) const
inlineoverridevirtual

Implements OpChef.

Definition at line 33 of file BatchMatMul.h.

34 {
35 return tflite::BuiltinOptions_BatchMatMulOptions;
36 }

◆ value() [1/2]

flatbuffers::Offset< void > BatchMatMulChef::value ( flatbuffers::FlatBufferBuilder fbb) const
overridevirtual

Implements OpChef.

Definition at line 19 of file BatchMatMul.cpp.

20{
21 auto &operation = (*_operation);
22
23 assert(operation.has_batch_matmul_options());
24
25 circle::BatchMatMulOptionsBuilder batch_matmul_options_options_builder{fbb};
26 batch_matmul_options_options_builder.add_adjoint_lhs(
27 operation.batch_matmul_options().adjoint_lhs());
28 batch_matmul_options_options_builder.add_adjoint_rhs(
29 operation.batch_matmul_options().adjoint_rhs());
30
31 return batch_matmul_options_options_builder.Finish().Union();
32}
void Finish(Offset< T > root, const char *file_identifier=nullptr)
Finish serializing a buffer by writing the root offset.

References flatbuffers::FlatBufferBuilder::Finish().

◆ value() [2/2]

flatbuffers::Offset< void > BatchMatMulChef::value ( flatbuffers::FlatBufferBuilder fbb) const
overridevirtual

Implements OpChef.


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