#include <All.h>
Definition at line 22 of file All.h.
◆ AllChef()
| AllChef::AllChef |
( |
const tflchef::Operation * |
operation | ) |
|
|
inlineexplicit |
Definition at line 25 of file All.h.
25 : _operation{operation}
26 {
27
28 }
◆ code()
| tflite::BuiltinOperator AllChef::code |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 31 of file All.h.
31{ return tflite::BuiltinOperator_CUSTOM; }
◆ custom_value()
REGISTER_OP("All") .Input("input: bool") .Input("reduction_indices: Tidx") .Output("output: bool") .Attr("keep_dims: bool = false") .Attr("Tidx: {int32, int64} = DT_INT32") .SetShapeFn(shape_inference::ReductionShape);
Reimplemented from OpChef.
Definition at line 29 of file All.cpp.
30{
31 auto &operation = (*_operation);
32
34
45 auto flex_buffers = std::make_unique<flexbuffers::Builder>();
46 size_t map_start = flex_buffers->StartMap();
47
48
49 flex_buffers->Int("Tidx", tflite::TensorType_INT32);
50 flex_buffers->Bool("keep_dims", operation.all_options().keep_dims());
51
52 flex_buffers->EndMap(map_start);
53 flex_buffers->Finish();
54
57}
void check_custom_op_value(const tflchef::Operation &operation, const std::string &op_type)
OffsetT< VectorT< T > > CreateVector(const T *v, size_t len)
Serialize an array into a FlatBuffer vector.
flatbuffers::Offset< flatbuffers::Vector< uint8_t > > circle_custom_options(flatbuffers::FlatBufferBuilder &fb, const luci::CircleNode *node)
References check_custom_op_value(), and flatbuffers::FlatBufferBuilderImpl< Is64Aware >::CreateVector().
◆ type()
| tflite::BuiltinOptions AllChef::type |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Implements OpChef.
Definition at line 33 of file All.h.
33{ return tflite::BuiltinOptions_NONE; }
◆ value()
Implements OpChef.
Definition at line 23 of file All.cpp.
24{
25 return flatbuffers::Offset<void>();
26}
The documentation for this class was generated from the following files:
- compiler/tflchef/core/src/CustomOp/All.h
- compiler/tflchef/core/src/CustomOp/All.cpp