#include <Reshape.h>
Definition at line 22 of file Reshape.h.
◆ ReshapeChef()
ReshapeChef::ReshapeChef |
( |
const tflchef::Operation * |
operation | ) |
|
|
inlineexplicit |
Definition at line 25 of file Reshape.h.
25 : _operation{operation}
26 {
27
28 }
◆ code()
tflite::BuiltinOperator ReshapeChef::code |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 31 of file Reshape.h.
31{ return tflite::BuiltinOperator_RESHAPE; }
◆ type()
tflite::BuiltinOptions ReshapeChef::type |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 33 of file Reshape.h.
33{ return tflite::BuiltinOptions_ReshapeOptions; }
◆ value()
Implements OpChef.
Definition at line 40 of file Reshape.cpp.
41{
42 auto &operation = (*_operation);
43
44 if (!operation.has_reshape_options())
45 return 0;
46
47 auto options = operation.reshape_options();
48 auto shapes = vector_new_shape(options);
49
50
52
53 tflite::ReshapeOptionsBuilder options_builder{fbb};
54
55 options_builder.add_new_shape(fb_new_shape);
56
57 return options_builder.
Finish().Union();
58}
void Finish(Offset< T > root, const char *file_identifier=nullptr)
Finish serializing a buffer by writing the root offset.
Offset< Vector< T > > CreateVector(const T *v, size_t len)
Serialize an array into a FlatBuffer vector.
References flatbuffers::FlatBufferBuilder::CreateVector(), and flatbuffers::FlatBufferBuilder::Finish().
The documentation for this class was generated from the following files: