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

#include <BCQFullyConnected.h>

Collaboration diagram for BCQFullyConnectedChef:

Public Member Functions

 BCQFullyConnectedChef (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
 
- 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 BCQFullyConnected.h.

Constructor & Destructor Documentation

◆ BCQFullyConnectedChef()

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

Definition at line 25 of file BCQFullyConnected.h.

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

Member Function Documentation

◆ code()

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

Implements OpChef.

Definition at line 31 of file BCQFullyConnected.h.

32 {
33 return circle::BuiltinOperator_BCQ_FULLY_CONNECTED;
34 }

◆ type()

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

Implements OpChef.

Definition at line 36 of file BCQFullyConnected.h.

37 {
38 return circle::BuiltinOptions_BCQFullyConnectedOptions;
39 }

◆ value()

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

Implements OpChef.

Definition at line 21 of file BCQFullyConnected.cpp.

22{
23 auto &operation = (*_operation);
24
25 assert(operation.has_bcq_fully_connected_options());
26
27 circle::BCQFullyConnectedOptionsBuilder bcq_fully_connected_options_builder{fbb};
28 bcq_fully_connected_options_builder.add_weights_hidden_size(
29 operation.bcq_fully_connected_options().weights_hidden_size());
30 bcq_fully_connected_options_builder.add_fused_activation_function(
31 as_circle_activation(operation.bcq_fully_connected_options().activation()));
32
33 return bcq_fully_connected_options_builder.Finish().Union();
34}
circle::ActivationFunctionType as_circle_activation(const circlechef::Activation &value)
Definition Convert.cpp:36
void Finish(Offset< T > root, const char *file_identifier=nullptr)
Finish serializing a buffer by writing the root offset.

References as_circle_activation(), and flatbuffers::FlatBufferBuilder::Finish().


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