#include <Squeeze.h>
Definition at line 22 of file Squeeze.h.
◆ SqueezeChef()
SqueezeChef::SqueezeChef |
( |
const tflchef::Operation * |
operation | ) |
|
|
inlineexplicit |
Definition at line 25 of file Squeeze.h.
25 : _operation{operation}
26 {
27
28 }
◆ code()
tflite::BuiltinOperator SqueezeChef::code |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 31 of file Squeeze.h.
31{ return tflite::BuiltinOperator_SQUEEZE; }
◆ type()
tflite::BuiltinOptions SqueezeChef::type |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 33 of file Squeeze.h.
33{ return tflite::BuiltinOptions_SqueezeOptions; }
◆ value()
Implements OpChef.
Definition at line 23 of file Squeeze.cpp.
24{
25 auto &operation = (*_operation);
26
27 assert(operation.has_squeeze_options());
28
29 const auto &
options = operation.squeeze_options();
30
31
32 auto fb_squeeze_dims =
34
35 return tflite::CreateSqueezeOptions(fbb, fb_squeeze_dims).Union();
36}
Offset< Vector< T > > CreateVector(const T *v, size_t len)
Serialize an array into a FlatBuffer vector.
References flatbuffers::FlatBufferBuilder::CreateVector().
The documentation for this class was generated from the following files: