ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::BuiltinOptionsExtractor Class Referencefinal

#include <CircleBuiltinTypesExtractor.h>

Collaboration diagram for luci::BuiltinOptionsExtractor:

Public Member Functions

 BuiltinOptionsExtractor (flatbuffers::FlatBufferBuilder &builder)
 
flatbuffers::Offset< void > visit (luci::CircleAbs *)
 
flatbuffers::Offset< void > visit (luci::CircleAdd *node)
 
flatbuffers::Offset< void > visit (luci::CircleAddN *)
 
flatbuffers::Offset< void > visit (luci::CircleArgMax *node)
 
flatbuffers::Offset< void > visit (luci::CircleArgMin *node)
 
flatbuffers::Offset< void > visit (luci::CircleAveragePool2D *node)
 
flatbuffers::Offset< void > visit (luci::CircleBatchMatMul *node)
 
flatbuffers::Offset< void > visit (luci::CircleBatchToSpaceND *)
 
flatbuffers::Offset< void > visit (luci::CircleBidirectionalSequenceLSTM *node)
 
flatbuffers::Offset< void > visit (luci::CircleBroadcastTo *)
 
flatbuffers::Offset< void > visit (luci::CircleCast *node)
 
flatbuffers::Offset< void > visit (luci::CircleCeil *)
 
flatbuffers::Offset< void > visit (luci::CircleConcatenation *node)
 
flatbuffers::Offset< void > visit (luci::CircleConv2D *node)
 
flatbuffers::Offset< void > visit (luci::CircleCos *)
 
flatbuffers::Offset< void > visit (luci::CircleCumSum *node)
 
flatbuffers::Offset< void > visit (luci::CircleCustom *)
 
flatbuffers::Offset< void > visit (luci::CircleDensify *)
 
flatbuffers::Offset< void > visit (luci::CircleDepthToSpace *node)
 
flatbuffers::Offset< void > visit (luci::CircleDepthwiseConv2D *node)
 
flatbuffers::Offset< void > visit (luci::CircleDequantize *)
 
flatbuffers::Offset< void > visit (luci::CircleDiv *node)
 
flatbuffers::Offset< void > visit (luci::CircleElu *)
 
flatbuffers::Offset< void > visit (luci::CircleEqual *)
 
flatbuffers::Offset< void > visit (luci::CircleExp *)
 
flatbuffers::Offset< void > visit (luci::CircleExpandDims *)
 
flatbuffers::Offset< void > visit (luci::CircleFakeQuant *node)
 
flatbuffers::Offset< void > visit (luci::CircleFill *)
 
flatbuffers::Offset< void > visit (luci::CircleFloor *)
 
flatbuffers::Offset< void > visit (luci::CircleFloorDiv *)
 
flatbuffers::Offset< void > visit (luci::CircleFloorMod *)
 
flatbuffers::Offset< void > visit (luci::CircleFullyConnected *node)
 
flatbuffers::Offset< void > visit (luci::CircleGather *node)
 
flatbuffers::Offset< void > visit (luci::CircleGatherNd *)
 
flatbuffers::Offset< void > visit (luci::CircleGelu *node)
 
flatbuffers::Offset< void > visit (luci::CircleGreater *)
 
flatbuffers::Offset< void > visit (luci::CircleGreaterEqual *)
 
flatbuffers::Offset< void > visit (luci::CircleHardSwish *)
 
flatbuffers::Offset< void > visit (luci::CircleIf *node)
 
flatbuffers::Offset< void > visit (luci::CircleL2Normalize *node)
 
flatbuffers::Offset< void > visit (luci::CircleL2Pool2D *node)
 
flatbuffers::Offset< void > visit (luci::CircleLeakyRelu *node)
 
flatbuffers::Offset< void > visit (luci::CircleLess *)
 
flatbuffers::Offset< void > visit (luci::CircleLessEqual *)
 
flatbuffers::Offset< void > visit (luci::CircleLocalResponseNormalization *node)
 
flatbuffers::Offset< void > visit (luci::CircleLog *)
 
flatbuffers::Offset< void > visit (luci::CircleLogicalAnd *)
 
flatbuffers::Offset< void > visit (luci::CircleLogicalNot *)
 
flatbuffers::Offset< void > visit (luci::CircleLogicalOr *)
 
flatbuffers::Offset< void > visit (luci::CircleLogistic *)
 
flatbuffers::Offset< void > visit (luci::CircleLogSoftmax *)
 
flatbuffers::Offset< void > visit (luci::CircleMatrixDiag *)
 
flatbuffers::Offset< void > visit (luci::CircleMatrixSetDiag *)
 
flatbuffers::Offset< void > visit (luci::CircleMaximum *)
 
flatbuffers::Offset< void > visit (luci::CircleMaxPool2D *node)
 
flatbuffers::Offset< void > visit (luci::CircleMean *node)
 
flatbuffers::Offset< void > visit (luci::CircleMinimum *)
 
flatbuffers::Offset< void > visit (luci::CircleMirrorPad *node)
 
flatbuffers::Offset< void > visit (luci::CircleMul *node)
 
flatbuffers::Offset< void > visit (luci::CircleNeg *)
 
flatbuffers::Offset< void > visit (luci::CircleNonMaxSuppressionV4 *)
 
flatbuffers::Offset< void > visit (luci::CircleNonMaxSuppressionV5 *)
 
flatbuffers::Offset< void > visit (luci::CircleNotEqual *)
 
flatbuffers::Offset< void > visit (luci::CircleOneHot *node)
 
flatbuffers::Offset< void > visit (luci::CirclePack *node)
 
flatbuffers::Offset< void > visit (luci::CirclePad *)
 
flatbuffers::Offset< void > visit (luci::CirclePadV2 *)
 
flatbuffers::Offset< void > visit (luci::CirclePow *)
 
flatbuffers::Offset< void > visit (luci::CirclePRelu *)
 
flatbuffers::Offset< void > visit (luci::CircleQuantize *)
 
flatbuffers::Offset< void > visit (luci::CircleRange *)
 
flatbuffers::Offset< void > visit (luci::CircleRank *)
 
flatbuffers::Offset< void > visit (luci::CircleReduceAny *node)
 
flatbuffers::Offset< void > visit (luci::CircleReduceMax *node)
 
flatbuffers::Offset< void > visit (luci::CircleReduceMin *node)
 
flatbuffers::Offset< void > visit (luci::CircleReduceProd *node)
 
flatbuffers::Offset< void > visit (luci::CircleRelu *)
 
flatbuffers::Offset< void > visit (luci::CircleRelu0To1 *)
 
flatbuffers::Offset< void > visit (luci::CircleRelu6 *)
 
flatbuffers::Offset< void > visit (luci::CircleReluN1To1 *)
 
flatbuffers::Offset< void > visit (luci::CircleReshape *node)
 
flatbuffers::Offset< void > visit (luci::CircleResizeBilinear *node)
 
flatbuffers::Offset< void > visit (luci::CircleResizeNearestNeighbor *node)
 
flatbuffers::Offset< void > visit (luci::CircleReverseSequence *node)
 
flatbuffers::Offset< void > visit (luci::CircleReverseV2 *)
 
flatbuffers::Offset< void > visit (luci::CircleRound *)
 
flatbuffers::Offset< void > visit (luci::CircleRsqrt *)
 
flatbuffers::Offset< void > visit (luci::CircleScatterNd *)
 
flatbuffers::Offset< void > visit (luci::CircleSegmentSum *)
 
flatbuffers::Offset< void > visit (luci::CircleSelect *)
 
flatbuffers::Offset< void > visit (luci::CircleSelectV2 *)
 
flatbuffers::Offset< void > visit (luci::CircleShape *node)
 
flatbuffers::Offset< void > visit (luci::CircleSin *)
 
flatbuffers::Offset< void > visit (luci::CircleSlice *)
 
flatbuffers::Offset< void > visit (luci::CircleSoftmax *node)
 
flatbuffers::Offset< void > visit (luci::CircleSpaceToBatchND *)
 
flatbuffers::Offset< void > visit (luci::CircleSpaceToDepth *node)
 
flatbuffers::Offset< void > visit (luci::CircleSparseToDense *node)
 
flatbuffers::Offset< void > visit (luci::CircleSplit *node)
 
flatbuffers::Offset< void > visit (luci::CircleSplitV *node)
 
flatbuffers::Offset< void > visit (luci::CircleSqrt *)
 
flatbuffers::Offset< void > visit (luci::CircleSquare *)
 
flatbuffers::Offset< void > visit (luci::CircleSquaredDifference *)
 
flatbuffers::Offset< void > visit (luci::CircleSqueeze *node)
 
flatbuffers::Offset< void > visit (luci::CircleStridedSlice *node)
 
flatbuffers::Offset< void > visit (luci::CircleSub *node)
 
flatbuffers::Offset< void > visit (luci::CircleSum *node)
 
flatbuffers::Offset< void > visit (luci::CircleSVDF *node)
 
flatbuffers::Offset< void > visit (luci::CircleTanh *)
 
flatbuffers::Offset< void > visit (luci::CircleTile *)
 
flatbuffers::Offset< void > visit (luci::CircleTopKV2 *)
 
flatbuffers::Offset< void > visit (luci::CircleTranspose *)
 
flatbuffers::Offset< void > visit (luci::CircleTransposeConv *node)
 
flatbuffers::Offset< void > visit (luci::CircleUnidirectionalSequenceLSTM *node)
 
flatbuffers::Offset< void > visit (luci::CircleUnique *node)
 
flatbuffers::Offset< void > visit (luci::CircleUnpack *node)
 
flatbuffers::Offset< void > visit (luci::CircleWhere *)
 
flatbuffers::Offset< void > visit (luci::CircleWhile *node)
 
flatbuffers::Offset< void > visit (luci::CircleZerosLike *)
 
flatbuffers::Offset< void > visit (luci::CircleBCQFullyConnected *node)
 
flatbuffers::Offset< void > visit (luci::CircleBCQGather *node)
 
flatbuffers::Offset< void > visit (luci::CircleGRU *node)
 
flatbuffers::Offset< void > visit (luci::CircleInstanceNorm *node)
 
flatbuffers::Offset< void > visit (luci::CircleRmsNorm *node)
 
flatbuffers::Offset< void > visit (luci::CircleRoPE *node)
 
- Public Member Functions inherited from luci::CircleNodeMutableVisitor< flatbuffers::Offset< void > >
virtual ~CircleNodeMutableVisitor ()=default
 
virtual flatbuffers::Offset< void > visit (CircleNode *)
 Default fallback.
 
- Public Member Functions inherited from luci::CircleNodeMutableVisitorBase< T >
virtual ~CircleNodeMutableVisitorBase ()=default
 

Protected Attributes

flatbuffers::FlatBufferBuilder_builder
 

Detailed Description

Definition at line 33 of file CircleBuiltinTypesExtractor.h.

Constructor & Destructor Documentation

◆ BuiltinOptionsExtractor()

luci::BuiltinOptionsExtractor::BuiltinOptionsExtractor ( flatbuffers::FlatBufferBuilder builder)
inline

Definition at line 37 of file CircleBuiltinTypesExtractor.h.

37 : _builder{builder}
38 {
39 // DO NOTHING
40 }
flatbuffers::FlatBufferBuilder & _builder

Member Function Documentation

◆ visit() [1/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleAbs )
inline

Definition at line 43 of file CircleBuiltinTypesExtractor.h.

44 {
45 return circle::CreateAbsOptions(_builder).Union();
46 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [2/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleAdd node)
inline

Definition at line 47 of file CircleBuiltinTypesExtractor.h.

48 {
49 return circle::CreateAddOptions(_builder, to_circle_actfunc(node->fusedActivationFunction()))
50 .Union();
51 }
circle::ActivationFunctionType to_circle_actfunc(luci::FusedActFunc func)

References _builder, luci::CircleNodeMixin< CircleNodeTrait::FusedActFunc >::fusedActivationFunction(), luci::to_circle_actfunc(), and flatbuffers::Offset< T >::Union().

◆ visit() [3/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleAddN )
inline

Definition at line 52 of file CircleBuiltinTypesExtractor.h.

53 {
54 return circle::CreateAddNOptions(_builder).Union();
55 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [4/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleArgMax node)
inline

Definition at line 56 of file CircleBuiltinTypesExtractor.h.

57 {
58 return circle::CreateArgMaxOptions(_builder, luci::to_circle_tensortype(node->output_type()))
59 .Union();
60 }
loco::DataType output_type(void) const
circle::TensorType to_circle_tensortype(loco::DataType type)

References _builder, luci::CircleArgMax::output_type(), luci::to_circle_tensortype(), and flatbuffers::Offset< T >::Union().

◆ visit() [5/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleArgMin node)
inline

Definition at line 61 of file CircleBuiltinTypesExtractor.h.

62 {
63 return circle::CreateArgMinOptions(_builder, luci::to_circle_tensortype(node->output_type()))
64 .Union();
65 }
loco::DataType output_type(void) const

References _builder, luci::CircleArgMin::output_type(), luci::to_circle_tensortype(), and flatbuffers::Offset< T >::Union().

◆ visit() [6/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleAveragePool2D node)
inline

Definition at line 66 of file CircleBuiltinTypesExtractor.h.

67 {
68 return circle::CreatePool2DOptions(_builder, getOpPadding(node->padding()), node->stride()->w(),
69 node->stride()->h(), node->filter()->w(),
70 node->filter()->h(),
72 .Union();
73 }
const Filter * filter(void) const
const Stride * stride(void) const
uint32_t h() const
Definition AttrFilter.h:34
uint32_t w() const
Definition AttrFilter.h:30
uint32_t h() const
Definition AttrStride.h:34
uint32_t w() const
Definition AttrStride.h:30
circle::Padding getOpPadding(const loco::Padding2D *pad, const loco::Stride< 2 > *stride, const ShapeDescription &ifm, const ShapeDescription &ofm)

References _builder, luci::CircleAveragePool2D::filter(), luci::CircleNodeMixin< CircleNodeTrait::FusedActFunc >::fusedActivationFunction(), luci::getOpPadding(), luci::Filter::h(), luci::Stride::h(), luci::CircleAveragePool2D::padding(), luci::CircleAveragePool2D::stride(), luci::to_circle_actfunc(), flatbuffers::Offset< T >::Union(), luci::Filter::w(), and luci::Stride::w().

◆ visit() [7/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleBatchMatMul node)
inline

Definition at line 74 of file CircleBuiltinTypesExtractor.h.

75 {
76 return circle::CreateBatchMatMulOptions(_builder, node->adj_x(), node->adj_y()).Union();
77 }

References _builder, luci::CircleBatchMatMul::adj_x(), luci::CircleBatchMatMul::adj_y(), and flatbuffers::Offset< T >::Union().

◆ visit() [8/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleBatchToSpaceND )
inline

Definition at line 78 of file CircleBuiltinTypesExtractor.h.

79 {
80 return circle::CreateBatchToSpaceNDOptions(_builder).Union();
81 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [9/125]

◆ visit() [10/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleBCQGather node)
inline

Definition at line 534 of file CircleBuiltinTypesExtractor.h.

535 {
536 return circle::CreateBCQGatherOptions(_builder, node->input_hidden_size(), node->axis())
537 .Union();
538 }
int32_t input_hidden_size(void) const
int32_t axis(void) const

References _builder, luci::CircleBCQGather::axis(), luci::CircleBCQGather::input_hidden_size(), and flatbuffers::Offset< T >::Union().

◆ visit() [11/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleBidirectionalSequenceLSTM node)
inline

◆ visit() [12/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleBroadcastTo )
inline

Definition at line 90 of file CircleBuiltinTypesExtractor.h.

90{ return _no_option; }

◆ visit() [13/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleCast node)
inline

Definition at line 91 of file CircleBuiltinTypesExtractor.h.

92 {
93 if (node->out_data_type() == loco::DataType::Unknown)
94 return _no_option;
95 else
96 return circle::CreateCastOptions(_builder, luci::to_circle_tensortype(node->in_data_type()),
98 .Union();
99 }
loco::DataType out_data_type(void) const
Definition CircleCast.h:41
loco::DataType in_data_type(void) const
Definition CircleCast.h:38
Offset< void > Union() const
Definition flatbuffers.h:74

References _builder, luci::CircleCast::in_data_type(), luci::CircleCast::out_data_type(), luci::to_circle_tensortype(), and flatbuffers::Offset< T >::Union().

◆ visit() [14/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleCeil )
inline

Definition at line 100 of file CircleBuiltinTypesExtractor.h.

100{ return _no_option; }

◆ visit() [15/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleConcatenation node)
inline

◆ visit() [16/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleConv2D node)
inline

◆ visit() [17/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleCos )
inline

Definition at line 117 of file CircleBuiltinTypesExtractor.h.

118 {
119 return circle::CreateCosOptions(_builder).Union();
120 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [18/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleCumSum node)
inline

Definition at line 121 of file CircleBuiltinTypesExtractor.h.

122 {
123 return circle::CreateCumsumOptions(_builder, node->exclusive(), node->reverse()).Union();
124 }
bool exclusive(void) const
bool reverse(void) const

References _builder, luci::CircleCumSum::exclusive(), luci::CircleCumSum::reverse(), and flatbuffers::Offset< T >::Union().

◆ visit() [19/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleCustom )
inline

Definition at line 125 of file CircleBuiltinTypesExtractor.h.

125{ return _no_option; }

◆ visit() [20/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleDensify )
inline

Definition at line 126 of file CircleBuiltinTypesExtractor.h.

127 {
128 return circle::CreateDensifyOptions(_builder).Union();
129 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [21/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleDepthToSpace node)
inline

Definition at line 130 of file CircleBuiltinTypesExtractor.h.

131 {
132 return circle::CreateDepthToSpaceOptions(_builder, node->block_size()).Union();
133 }
int32_t block_size(void) const

References _builder, luci::CircleDepthToSpace::block_size(), and flatbuffers::Offset< T >::Union().

◆ visit() [22/125]

◆ visit() [23/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleDequantize )
inline

Definition at line 142 of file CircleBuiltinTypesExtractor.h.

142{ return _no_option; }

◆ visit() [24/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleDiv node)
inline

◆ visit() [25/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleElu )
inline

Definition at line 148 of file CircleBuiltinTypesExtractor.h.

148{ return _no_option; }

◆ visit() [26/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleEqual )
inline

Definition at line 149 of file CircleBuiltinTypesExtractor.h.

150 {
151 return circle::CreateEqualOptions(_builder).Union();
152 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [27/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleExp )
inline

Definition at line 153 of file CircleBuiltinTypesExtractor.h.

154 {
155 return circle::CreateExpOptions(_builder).Union();
156 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [28/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleExpandDims )
inline

Definition at line 157 of file CircleBuiltinTypesExtractor.h.

158 {
159 return circle::CreateExpandDimsOptions(_builder).Union();
160 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [29/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleFakeQuant node)
inline

Definition at line 161 of file CircleBuiltinTypesExtractor.h.

162 {
163 return circle::CreateFakeQuantOptions(_builder, node->min(), node->max(), node->num_bits(),
164 node->narrow_range())
165 .Union();
166 }
float max(void) const
int32_t num_bits(void) const
bool narrow_range(void) const
float min(void) const

References _builder, luci::CircleFakeQuant::max(), luci::CircleFakeQuant::min(), luci::CircleFakeQuant::narrow_range(), luci::CircleFakeQuant::num_bits(), and flatbuffers::Offset< T >::Union().

◆ visit() [30/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleFill )
inline

Definition at line 167 of file CircleBuiltinTypesExtractor.h.

168 {
169 return circle::CreateFillOptions(_builder).Union();
170 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [31/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleFloor )
inline

Definition at line 171 of file CircleBuiltinTypesExtractor.h.

171{ return _no_option; }

◆ visit() [32/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleFloorDiv )
inline

Definition at line 172 of file CircleBuiltinTypesExtractor.h.

173 {
174 return circle::CreateFloorDivOptions(_builder).Union();
175 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [33/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleFloorMod )
inline

Definition at line 176 of file CircleBuiltinTypesExtractor.h.

177 {
178 return circle::CreateFloorModOptions(_builder).Union();
179 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [34/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleFullyConnected node)
inline

Definition at line 180 of file CircleBuiltinTypesExtractor.h.

181 {
182 return circle::CreateFullyConnectedOptions(
185 .Union();
186 }
WeightsFormat weights_format(void) const
circle::FullyConnectedOptionsWeightsFormat to_circle_weightsformat(luci::CircleFullyConnected::WeightsFormat format)

References _builder, luci::CircleNodeMixin< CircleNodeTrait::FusedActFunc >::fusedActivationFunction(), luci::CircleFullyConnected::keep_num_dims(), luci::to_circle_actfunc(), luci::to_circle_weightsformat(), flatbuffers::Offset< T >::Union(), and luci::CircleFullyConnected::weights_format().

◆ visit() [35/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleGather node)
inline

Definition at line 187 of file CircleBuiltinTypesExtractor.h.

188 {
189 return circle::CreateGatherOptions(_builder, node->axis()).Union();
190 }
int32_t axis(void) const

References _builder, luci::CircleGather::axis(), and flatbuffers::Offset< T >::Union().

◆ visit() [36/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleGatherNd )
inline

Definition at line 191 of file CircleBuiltinTypesExtractor.h.

192 {
193 return circle::CreateGatherNdOptions(_builder).Union();
194 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [37/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleGelu node)
inline

Definition at line 195 of file CircleBuiltinTypesExtractor.h.

196 {
197 return circle::CreateGeluOptions(_builder, node->approximate()).Union();
198 }
bool approximate(void) const
Definition CircleGelu.h:38

References _builder, luci::CircleGelu::approximate(), and flatbuffers::Offset< T >::Union().

◆ visit() [38/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleGreater )
inline

Definition at line 199 of file CircleBuiltinTypesExtractor.h.

200 {
201 return circle::CreateGreaterOptions(_builder).Union();
202 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [39/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleGreaterEqual )
inline

Definition at line 203 of file CircleBuiltinTypesExtractor.h.

204 {
205 return circle::CreateGreaterEqualOptions(_builder).Union();
206 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [40/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleGRU node)
inline

Definition at line 539 of file CircleBuiltinTypesExtractor.h.

540 {
541 return circle::CreateGRUOptions(_builder, to_circle_actfunc(node->fusedActivationFunction()),
542 node->returnSequences(), node->timeMajor())
543 .Union();
544 }
bool timeMajor() const
Definition CircleGRU.h:59
FusedActFunc fusedActivationFunction() const
Definition CircleGRU.h:53
bool returnSequences() const
Definition CircleGRU.h:56

References _builder, luci::CircleGRU::fusedActivationFunction(), luci::CircleGRU::returnSequences(), luci::CircleGRU::timeMajor(), luci::to_circle_actfunc(), and flatbuffers::Offset< T >::Union().

◆ visit() [41/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleHardSwish )
inline

Definition at line 207 of file CircleBuiltinTypesExtractor.h.

207{ return _no_option; }

◆ visit() [42/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleIf node)
inline

Definition at line 208 of file CircleBuiltinTypesExtractor.h.

209 {
210 return circle::CreateIfOptions(_builder, node->then_branch(), node->else_branch()).Union();
211 }
int32_t else_branch(void) const
Definition CircleIf.h:58
int32_t then_branch(void) const
Definition CircleIf.h:55

References _builder, luci::CircleIf::else_branch(), luci::CircleIf::then_branch(), and flatbuffers::Offset< T >::Union().

◆ visit() [43/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleInstanceNorm node)
inline

◆ visit() [44/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleL2Normalize node)
inline

◆ visit() [45/125]

◆ visit() [46/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLeakyRelu node)
inline

Definition at line 225 of file CircleBuiltinTypesExtractor.h.

226 {
227 return circle::CreateLeakyReluOptions(_builder, node->alpha()).Union();
228 }

References _builder, luci::CircleLeakyRelu::alpha(), and flatbuffers::Offset< T >::Union().

◆ visit() [47/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLess )
inline

Definition at line 229 of file CircleBuiltinTypesExtractor.h.

230 {
231 return circle::CreateLessOptions(_builder).Union();
232 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [48/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLessEqual )
inline

Definition at line 233 of file CircleBuiltinTypesExtractor.h.

234 {
235 return circle::CreateLessEqualOptions(_builder).Union();
236 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [49/125]

◆ visit() [50/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLog )
inline

Definition at line 243 of file CircleBuiltinTypesExtractor.h.

243{ return _no_option; }

◆ visit() [51/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLogicalAnd )
inline

Definition at line 244 of file CircleBuiltinTypesExtractor.h.

245 {
246 return circle::CreateLogicalAndOptions(_builder).Union();
247 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [52/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLogicalNot )
inline

Definition at line 248 of file CircleBuiltinTypesExtractor.h.

249 {
250 return circle::CreateLogicalNotOptions(_builder).Union();
251 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [53/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLogicalOr )
inline

Definition at line 252 of file CircleBuiltinTypesExtractor.h.

253 {
254 return circle::CreateLogicalOrOptions(_builder).Union();
255 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [54/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLogistic )
inline

Definition at line 256 of file CircleBuiltinTypesExtractor.h.

256{ return _no_option; }

◆ visit() [55/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleLogSoftmax )
inline

Definition at line 257 of file CircleBuiltinTypesExtractor.h.

258 {
259 return circle::CreateLogSoftmaxOptions(_builder).Union();
260 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [56/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleMatrixDiag )
inline

Definition at line 261 of file CircleBuiltinTypesExtractor.h.

262 {
263 return circle::CreateMatrixDiagOptions(_builder).Union();
264 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [57/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleMatrixSetDiag )
inline

Definition at line 265 of file CircleBuiltinTypesExtractor.h.

266 {
267 return circle::CreateMatrixSetDiagOptions(_builder).Union();
268 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [58/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleMaximum )
inline

Definition at line 269 of file CircleBuiltinTypesExtractor.h.

270 {
271 return circle::CreateMaximumMinimumOptions(_builder).Union();
272 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [59/125]

◆ visit() [60/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleMean node)
inline

Definition at line 281 of file CircleBuiltinTypesExtractor.h.

282 {
283 return circle::CreateReducerOptions(_builder, node->keep_dims()).Union();
284 }
bool keep_dims(void) const
Definition CircleMean.h:41

References _builder, luci::CircleMean::keep_dims(), and flatbuffers::Offset< T >::Union().

◆ visit() [61/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleMinimum )
inline

Definition at line 285 of file CircleBuiltinTypesExtractor.h.

286 {
287 return circle::CreateMaximumMinimumOptions(_builder).Union();
288 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [62/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleMirrorPad node)
inline

Definition at line 289 of file CircleBuiltinTypesExtractor.h.

290 {
291 return circle::CreateMirrorPadOptions(_builder, to_circle_mirrorpadmode(node->mode())).Union();
292 }
MirrorPadMode mode(void) const
circle::MirrorPadMode to_circle_mirrorpadmode(luci::MirrorPadMode mode)

References _builder, luci::CircleMirrorPad::mode(), luci::to_circle_mirrorpadmode(), and flatbuffers::Offset< T >::Union().

◆ visit() [63/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleMul node)
inline

◆ visit() [64/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleNeg )
inline

Definition at line 298 of file CircleBuiltinTypesExtractor.h.

299 {
300 return circle::CreateNegOptions(_builder).Union();
301 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [65/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleNonMaxSuppressionV4 )
inline

Definition at line 302 of file CircleBuiltinTypesExtractor.h.

303 {
304 return circle::CreateNonMaxSuppressionV4Options(_builder).Union();
305 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [66/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleNonMaxSuppressionV5 )
inline

Definition at line 306 of file CircleBuiltinTypesExtractor.h.

307 {
308 return circle::CreateNonMaxSuppressionV5Options(_builder).Union();
309 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [67/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleNotEqual )
inline

Definition at line 310 of file CircleBuiltinTypesExtractor.h.

311 {
312 return circle::CreateNotEqualOptions(_builder).Union();
313 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [68/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleOneHot node)
inline

Definition at line 314 of file CircleBuiltinTypesExtractor.h.

315 {
316 return circle::CreateOneHotOptions(_builder, node->axis()).Union();
317 }
int32_t axis(void) const

References _builder, luci::CircleOneHot::axis(), and flatbuffers::Offset< T >::Union().

◆ visit() [69/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CirclePack node)
inline

Definition at line 318 of file CircleBuiltinTypesExtractor.h.

319 {
320 return circle::CreatePackOptions(_builder, node->values_count(), node->axis()).Union();
321 }
int32_t axis(void) const
Definition CirclePack.h:58
uint32_t values_count(void) const
Definition CirclePack.h:43

References _builder, luci::CirclePack::axis(), flatbuffers::Offset< T >::Union(), and luci::CirclePack::values_count().

◆ visit() [70/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CirclePad )
inline

Definition at line 322 of file CircleBuiltinTypesExtractor.h.

323 {
324 return circle::CreatePadOptions(_builder).Union();
325 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [71/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CirclePadV2 )
inline

Definition at line 326 of file CircleBuiltinTypesExtractor.h.

327 {
328 return circle::CreatePadV2Options(_builder).Union();
329 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [72/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CirclePow )
inline

Definition at line 330 of file CircleBuiltinTypesExtractor.h.

331 {
332 return circle::CreatePowOptions(_builder).Union();
333 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [73/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CirclePRelu )
inline

Definition at line 334 of file CircleBuiltinTypesExtractor.h.

334{ return _no_option; }

◆ visit() [74/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleQuantize )
inline

Definition at line 335 of file CircleBuiltinTypesExtractor.h.

335{ return _no_option; }

◆ visit() [75/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRange )
inline

Definition at line 336 of file CircleBuiltinTypesExtractor.h.

337 {
338 return circle::CreateRangeOptions(_builder).Union();
339 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [76/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRank )
inline

Definition at line 340 of file CircleBuiltinTypesExtractor.h.

341 {
342 return circle::CreateRankOptions(_builder).Union();
343 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [77/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleReduceAny node)
inline

Definition at line 344 of file CircleBuiltinTypesExtractor.h.

345 {
346 return circle::CreateReducerOptions(_builder, node->keep_dims()).Union();
347 }
bool keep_dims(void) const

References _builder, luci::CircleReduceAny::keep_dims(), and flatbuffers::Offset< T >::Union().

◆ visit() [78/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleReduceMax node)
inline

Definition at line 348 of file CircleBuiltinTypesExtractor.h.

349 {
350 return circle::CreateReducerOptions(_builder, node->keep_dims()).Union();
351 }
bool keep_dims(void) const

References _builder, luci::CircleReduceMax::keep_dims(), and flatbuffers::Offset< T >::Union().

◆ visit() [79/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleReduceMin node)
inline

Definition at line 352 of file CircleBuiltinTypesExtractor.h.

353 {
354 return circle::CreateReducerOptions(_builder, node->keep_dims()).Union();
355 }
bool keep_dims(void) const

References _builder, luci::CircleReduceMin::keep_dims(), and flatbuffers::Offset< T >::Union().

◆ visit() [80/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleReduceProd node)
inline

Definition at line 356 of file CircleBuiltinTypesExtractor.h.

357 {
358 return circle::CreateReducerOptions(_builder, node->keep_dims()).Union();
359 }
bool keep_dims(void) const

References _builder, luci::CircleReduceProd::keep_dims(), and flatbuffers::Offset< T >::Union().

◆ visit() [81/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRelu )
inline

Definition at line 360 of file CircleBuiltinTypesExtractor.h.

360{ return _no_option; }

◆ visit() [82/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRelu0To1 )
inline

Definition at line 361 of file CircleBuiltinTypesExtractor.h.

361{ return _no_option; }

◆ visit() [83/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRelu6 )
inline

Definition at line 362 of file CircleBuiltinTypesExtractor.h.

362{ return _no_option; }

◆ visit() [84/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleReluN1To1 )
inline

Definition at line 363 of file CircleBuiltinTypesExtractor.h.

363{ return _no_option; }

◆ visit() [85/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleReshape node)
inline

Definition at line 364 of file CircleBuiltinTypesExtractor.h.

365 {
366 auto new_shape = _builder.CreateVector<int32_t>(
367 node->newShape()->rank(), [node](size_t i) { return node->newShape()->dim(i); });
368 return circle::CreateReshapeOptions(_builder, new_shape).Union();
369 }
Offset< Vector< T > > CreateVector(const T *v, size_t len)
Serialize an array into a FlatBuffer vector.
uint32_t rank(void) const
int32_t dim(uint32_t n) const
const Shape * newShape(void) const

References _builder, flatbuffers::FlatBufferBuilder::CreateVector(), luci::CircleReshape::Shape::dim(), luci::CircleReshape::newShape(), and luci::CircleReshape::Shape::rank().

◆ visit() [86/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleResizeBilinear node)
inline

Definition at line 370 of file CircleBuiltinTypesExtractor.h.

371 {
372 return circle::CreateResizeBilinearOptions(_builder, node->align_corners(),
373 node->half_pixel_centers())
374 .Union();
375 }

References _builder, luci::CircleResizeBilinear::align_corners(), luci::CircleResizeBilinear::half_pixel_centers(), and flatbuffers::Offset< T >::Union().

◆ visit() [87/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleResizeNearestNeighbor node)
inline

Definition at line 376 of file CircleBuiltinTypesExtractor.h.

377 {
378 return circle::CreateResizeNearestNeighborOptions(_builder, node->align_corners()).Union();
379 }

References _builder, luci::CircleResizeNearestNeighbor::align_corners(), and flatbuffers::Offset< T >::Union().

◆ visit() [88/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleReverseSequence node)
inline

Definition at line 380 of file CircleBuiltinTypesExtractor.h.

381 {
382 return circle::CreateReverseSequenceOptions(_builder, node->seq_axis(), node->batch_axis())
383 .Union();
384 }

References _builder, luci::CircleReverseSequence::batch_axis(), luci::CircleReverseSequence::seq_axis(), and flatbuffers::Offset< T >::Union().

◆ visit() [89/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleReverseV2 )
inline

Definition at line 385 of file CircleBuiltinTypesExtractor.h.

386 {
387 return circle::CreateReverseV2Options(_builder).Union();
388 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [90/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRmsNorm node)
inline

Definition at line 551 of file CircleBuiltinTypesExtractor.h.

552 {
553 return circle::CreateRmsNormOptions(_builder, node->epsilon()).Union();
554 }
float epsilon() const

References _builder, luci::CircleRmsNorm::epsilon(), and flatbuffers::Offset< T >::Union().

◆ visit() [91/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRoPE node)
inline

Definition at line 555 of file CircleBuiltinTypesExtractor.h.

556 {
557 return circle::CreateRoPEOptions(_builder, to_circle_rope(node->mode())).Union();
558 }
RoPEMode mode() const
Definition CircleRoPE.h:46
circle::RoPEMode to_circle_rope(luci::RoPEMode mode)

References _builder, luci::CircleRoPE::mode(), luci::to_circle_rope(), and flatbuffers::Offset< T >::Union().

◆ visit() [92/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRound )
inline

Definition at line 389 of file CircleBuiltinTypesExtractor.h.

389{ return _no_option; }

◆ visit() [93/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleRsqrt )
inline

Definition at line 390 of file CircleBuiltinTypesExtractor.h.

390{ return _no_option; }

◆ visit() [94/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleScatterNd )
inline

Definition at line 391 of file CircleBuiltinTypesExtractor.h.

392 {
393 return circle::CreateScatterNdOptions(_builder).Union();
394 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [95/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSegmentSum )
inline

Definition at line 395 of file CircleBuiltinTypesExtractor.h.

396 {
397 return circle::CreateSegmentSumOptions(_builder).Union();
398 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [96/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSelect )
inline

Definition at line 399 of file CircleBuiltinTypesExtractor.h.

400 {
401 return circle::CreateSelectOptions(_builder).Union();
402 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [97/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSelectV2 )
inline

Definition at line 403 of file CircleBuiltinTypesExtractor.h.

404 {
405 return circle::CreateSelectV2Options(_builder).Union();
406 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [98/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleShape node)
inline

Definition at line 407 of file CircleBuiltinTypesExtractor.h.

408 {
409 return circle::CreateShapeOptions(_builder, luci::to_circle_tensortype(node->out_type()))
410 .Union();
411 }
loco::DataType out_type(void) const
Definition CircleShape.h:38

References _builder, luci::CircleShape::out_type(), luci::to_circle_tensortype(), and flatbuffers::Offset< T >::Union().

◆ visit() [99/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSin )
inline

Definition at line 412 of file CircleBuiltinTypesExtractor.h.

412{ return _no_option; }

◆ visit() [100/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSlice )
inline

Definition at line 413 of file CircleBuiltinTypesExtractor.h.

414 {
415 return circle::CreateSliceOptions(_builder).Union();
416 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [101/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSoftmax node)
inline

Definition at line 417 of file CircleBuiltinTypesExtractor.h.

418 {
419 return circle::CreateSoftmaxOptions(_builder, node->beta()).Union();
420 }
float beta(void) const

References _builder, luci::CircleSoftmax::beta(), and flatbuffers::Offset< T >::Union().

◆ visit() [102/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSpaceToBatchND )
inline

Definition at line 421 of file CircleBuiltinTypesExtractor.h.

422 {
423 return circle::CreateSpaceToBatchNDOptions(_builder).Union();
424 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [103/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSpaceToDepth node)
inline

Definition at line 425 of file CircleBuiltinTypesExtractor.h.

426 {
427 return circle::CreateSpaceToDepthOptions(_builder, node->block_size()).Union();
428 }
int32_t block_size(void) const

References _builder, luci::CircleSpaceToDepth::block_size(), and flatbuffers::Offset< T >::Union().

◆ visit() [104/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSparseToDense node)
inline

Definition at line 429 of file CircleBuiltinTypesExtractor.h.

430 {
431 return circle::CreateSparseToDenseOptions(_builder, node->validate_indices()).Union();
432 }

References _builder, flatbuffers::Offset< T >::Union(), and luci::CircleSparseToDense::validate_indices().

◆ visit() [105/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSplit node)
inline

Definition at line 433 of file CircleBuiltinTypesExtractor.h.

434 {
435 return circle::CreateSplitOptions(_builder, node->num_split()).Union();
436 }
int32_t num_split(void) const
Definition CircleSplit.h:42

References _builder, luci::CircleSplit::num_split(), and flatbuffers::Offset< T >::Union().

◆ visit() [106/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSplitV node)
inline

Definition at line 437 of file CircleBuiltinTypesExtractor.h.

438 {
439 return circle::CreateSplitVOptions(_builder, node->num_split()).Union();
440 }
int32_t num_split(void) const

References _builder, luci::CircleSplitV::num_split(), and flatbuffers::Offset< T >::Union().

◆ visit() [107/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSqrt )
inline

Definition at line 441 of file CircleBuiltinTypesExtractor.h.

441{ return _no_option; }

◆ visit() [108/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSquare )
inline

Definition at line 442 of file CircleBuiltinTypesExtractor.h.

443 {
444 return circle::CreateSquareOptions(_builder).Union();
445 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [109/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSquaredDifference )
inline

Definition at line 446 of file CircleBuiltinTypesExtractor.h.

447 {
448 return circle::CreateSquaredDifferenceOptions(_builder).Union();
449 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [110/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSqueeze node)
inline

Definition at line 450 of file CircleBuiltinTypesExtractor.h.

451 {
452 auto squeeze_dims = _builder.CreateVector<int32_t>(node->squeeze_dims());
453 return circle::CreateSqueezeOptions(_builder, squeeze_dims).Union();
454 }
const std::vector< int32_t > & squeeze_dims() const

References _builder, flatbuffers::FlatBufferBuilder::CreateVector(), and luci::CircleSqueeze::squeeze_dims().

◆ visit() [111/125]

◆ visit() [112/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSub node)
inline

◆ visit() [113/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSum node)
inline

Definition at line 467 of file CircleBuiltinTypesExtractor.h.

468 {
469 return circle::CreateReducerOptions(_builder, node->keep_dims()).Union();
470 }
bool keep_dims(void) const
Definition CircleSum.h:41

References _builder, luci::CircleSum::keep_dims(), and flatbuffers::Offset< T >::Union().

◆ visit() [114/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleSVDF node)
inline

◆ visit() [115/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleTanh )
inline

Definition at line 478 of file CircleBuiltinTypesExtractor.h.

478{ return _no_option; }

◆ visit() [116/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleTile )
inline

Definition at line 479 of file CircleBuiltinTypesExtractor.h.

480 {
481 return circle::CreateTileOptions(_builder).Union();
482 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [117/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleTopKV2 )
inline

Definition at line 483 of file CircleBuiltinTypesExtractor.h.

484 {
485 return circle::CreateTopKV2Options(_builder).Union();
486 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [118/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleTranspose )
inline

Definition at line 487 of file CircleBuiltinTypesExtractor.h.

488 {
489 return circle::CreateTransposeOptions(_builder).Union();
490 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [119/125]

◆ visit() [120/125]

◆ visit() [121/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleUnique node)
inline

Definition at line 505 of file CircleBuiltinTypesExtractor.h.

506 {
507 return circle::CreateUniqueOptions(_builder, luci::to_circle_tensortype(node->idx_out_type()))
508 .Union();
509 }
loco::DataType idx_out_type(void) const

References _builder, luci::CircleUnique::idx_out_type(), luci::to_circle_tensortype(), and flatbuffers::Offset< T >::Union().

◆ visit() [122/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleUnpack node)
inline

Definition at line 510 of file CircleBuiltinTypesExtractor.h.

511 {
512 return circle::CreateUnpackOptions(_builder, node->num(), node->axis()).Union();
513 }
int32_t axis(void) const
int32_t num(void) const

References _builder, luci::CircleUnpack::axis(), luci::CircleUnpack::num(), and flatbuffers::Offset< T >::Union().

◆ visit() [123/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleWhere )
inline

Definition at line 514 of file CircleBuiltinTypesExtractor.h.

515 {
516 return circle::CreateWhereOptions(_builder).Union();
517 }

References _builder, and flatbuffers::Offset< T >::Union().

◆ visit() [124/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleWhile node)
inline

Definition at line 518 of file CircleBuiltinTypesExtractor.h.

519 {
520 return circle::CreateWhileOptions(_builder, node->cond_branch(), node->body_branch()).Union();
521 }
int32_t cond_branch(void) const
Definition CircleWhile.h:55
int32_t body_branch(void) const
Definition CircleWhile.h:58

References _builder, luci::CircleWhile::body_branch(), luci::CircleWhile::cond_branch(), and flatbuffers::Offset< T >::Union().

◆ visit() [125/125]

flatbuffers::Offset< void > luci::BuiltinOptionsExtractor::visit ( luci::CircleZerosLike )
inline

Definition at line 522 of file CircleBuiltinTypesExtractor.h.

523 {
524 return circle::CreateZerosLikeOptions(_builder).Union();
525 }

References _builder, and flatbuffers::Offset< T >::Union().

Field Documentation

◆ _builder


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