#include <FullyConnected.h>
Definition at line 22 of file FullyConnected.h.
◆ FullyConnectedChef() [1/2]
FullyConnectedChef::FullyConnectedChef |
( |
const circlechef::Operation * |
operation | ) |
|
|
inlineexplicit |
◆ FullyConnectedChef() [2/2]
FullyConnectedChef::FullyConnectedChef |
( |
const tflchef::Operation * |
operation | ) |
|
|
inlineexplicit |
◆ code() [1/2]
circle::BuiltinOperator FullyConnectedChef::code |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 31 of file FullyConnected.h.
32 {
33 return circle::BuiltinOperator_FULLY_CONNECTED;
34 }
◆ code() [2/2]
tflite::BuiltinOperator FullyConnectedChef::code |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 31 of file FullyConnected.h.
32 {
33 return tflite::BuiltinOperator_FULLY_CONNECTED;
34 }
◆ type() [1/2]
circle::BuiltinOptions FullyConnectedChef::type |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 36 of file FullyConnected.h.
37 {
38 return circle::BuiltinOptions_FullyConnectedOptions;
39 }
◆ type() [2/2]
tflite::BuiltinOptions FullyConnectedChef::type |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 36 of file FullyConnected.h.
37 {
38 return tflite::BuiltinOptions_FullyConnectedOptions;
39 }
◆ value() [1/2]
Implements OpChef.
Definition at line 22 of file FullyConnected.cpp.
23{
24 auto &operation = (*_operation);
25
26 assert(operation.has_fullyconnected_options());
27
29
30 circle::FullyConnectedOptionsBuilder fc_options_builder{fbb};
31 fc_options_builder.add_fused_activation_function(circle_activation);
32 fc_options_builder.add_keep_num_dims(operation.fullyconnected_options().keep_num_dims());
33
34 return fc_options_builder.
Finish().Union();
35}
circle::ActivationFunctionType as_circle_activation(const circlechef::Activation &value)
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().
◆ value() [2/2]
The documentation for this class was generated from the following files: