diff --git a/onert-micro/externals/gen/circle-generated/circle/schema_generated.h b/onert-micro/externals/gen/circle-generated/circle/schema_generated.h index 2531319f95c..d71257de7f7 100644 --- a/onert-micro/externals/gen/circle-generated/circle/schema_generated.h +++ b/onert-micro/externals/gen/circle-generated/circle/schema_generated.h @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2023 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - // automatically generated by the FlatBuffers compiler, do not modify #ifndef FLATBUFFERS_GENERATED_SCHEMA_CIRCLE_H_ @@ -52,6 +36,10 @@ struct SparsityParameters; struct SparsityParametersBuilder; struct SparsityParametersT; +struct VariantSubType; +struct VariantSubTypeBuilder; +struct VariantSubTypeT; + struct Tensor; struct TensorBuilder; struct TensorT; @@ -512,6 +500,54 @@ struct RandomOptions; struct RandomOptionsBuilder; struct RandomOptionsT; +struct BucketizeOptions; +struct BucketizeOptionsBuilder; +struct BucketizeOptionsT; + +struct GeluOptions; +struct GeluOptionsBuilder; +struct GeluOptionsT; + +struct DynamicUpdateSliceOptions; +struct DynamicUpdateSliceOptionsBuilder; +struct DynamicUpdateSliceOptionsT; + +struct UnsortedSegmentProdOptions; +struct UnsortedSegmentProdOptionsBuilder; +struct UnsortedSegmentProdOptionsT; + +struct UnsortedSegmentMaxOptions; +struct UnsortedSegmentMaxOptionsBuilder; +struct UnsortedSegmentMaxOptionsT; + +struct UnsortedSegmentSumOptions; +struct UnsortedSegmentSumOptionsBuilder; +struct UnsortedSegmentSumOptionsT; + +struct ATan2Options; +struct ATan2OptionsBuilder; +struct ATan2OptionsT; + +struct UnsortedSegmentMinOptions; +struct UnsortedSegmentMinOptionsBuilder; +struct UnsortedSegmentMinOptionsT; + +struct SignOptions; +struct SignOptionsBuilder; +struct SignOptionsT; + +struct BitcastOptions; +struct BitcastOptionsBuilder; +struct BitcastOptionsT; + +struct BitwiseXorOptions; +struct BitwiseXorOptionsBuilder; +struct BitwiseXorOptionsT; + +struct RightShiftOptions; +struct RightShiftOptionsBuilder; +struct RightShiftOptionsT; + struct BCQGatherOptions; struct BCQGatherOptionsBuilder; struct BCQGatherOptionsT; @@ -574,32 +610,35 @@ enum TensorType : int8_t TensorType_RESOURCE = 13, TensorType_VARIANT = 14, TensorType_UINT32 = 15, + TensorType_UINT16 = 16, + TensorType_INT4 = 17, TensorType_MIN = TensorType_FLOAT32, - TensorType_MAX = TensorType_UINT32 + TensorType_MAX = TensorType_INT4 }; -inline const TensorType (&EnumValuesTensorType())[16] +inline const TensorType (&EnumValuesTensorType())[18] { static const TensorType values[] = { TensorType_FLOAT32, TensorType_FLOAT16, TensorType_INT32, TensorType_UINT8, TensorType_INT64, TensorType_STRING, TensorType_BOOL, TensorType_INT16, TensorType_COMPLEX64, TensorType_INT8, TensorType_FLOAT64, TensorType_COMPLEX128, - TensorType_UINT64, TensorType_RESOURCE, TensorType_VARIANT, TensorType_UINT32}; + TensorType_UINT64, TensorType_RESOURCE, TensorType_VARIANT, TensorType_UINT32, + TensorType_UINT16, TensorType_INT4}; return values; } inline const char *const *EnumNamesTensorType() { - static const char *const names[17] = {"FLOAT32", "FLOAT16", "INT32", "UINT8", "INT64", + static const char *const names[19] = {"FLOAT32", "FLOAT16", "INT32", "UINT8", "INT64", "STRING", "BOOL", "INT16", "COMPLEX64", "INT8", "FLOAT64", "COMPLEX128", "UINT64", "RESOURCE", "VARIANT", - "UINT32", nullptr}; + "UINT32", "UINT16", "INT4", nullptr}; return names; } inline const char *EnumNameTensorType(TensorType e) { - if (flatbuffers::IsOutRange(e, TensorType_FLOAT32, TensorType_UINT32)) + if (flatbuffers::IsOutRange(e, TensorType_FLOAT32, TensorType_INT4)) return ""; const size_t index = static_cast(e); return EnumNamesTensorType()[index]; @@ -1036,11 +1075,26 @@ enum BuiltinOperator : int32_t BuiltinOperator_ASSIGN_VARIABLE = 144, BuiltinOperator_BROADCAST_ARGS = 145, BuiltinOperator_RANDOM_STANDARD_NORMAL = 146, + BuiltinOperator_BUCKETIZE = 147, + BuiltinOperator_RANDOM_UNIFORM = 148, + BuiltinOperator_MULTINOMIAL = 149, + BuiltinOperator_GELU = 150, + BuiltinOperator_DYNAMIC_UPDATE_SLICE = 151, + BuiltinOperator_RELU_0_TO_1 = 152, + BuiltinOperator_UNSORTED_SEGMENT_PROD = 153, + BuiltinOperator_UNSORTED_SEGMENT_MAX = 154, + BuiltinOperator_UNSORTED_SEGMENT_SUM = 155, + BuiltinOperator_ATAN2 = 156, + BuiltinOperator_UNSORTED_SEGMENT_MIN = 157, + BuiltinOperator_SIGN = 158, + BuiltinOperator_BITCAST = 159, + BuiltinOperator_BITWISE_XOR = 160, + BuiltinOperator_RIGHT_SHIFT = 161, BuiltinOperator_MIN = BuiltinOperator_BCQ_GATHER, - BuiltinOperator_MAX = BuiltinOperator_RANDOM_STANDARD_NORMAL + BuiltinOperator_MAX = BuiltinOperator_RIGHT_SHIFT }; -inline const BuiltinOperator (&EnumValuesBuiltinOperator())[150] +inline const BuiltinOperator (&EnumValuesBuiltinOperator())[165] { static const BuiltinOperator values[] = {BuiltinOperator_BCQ_GATHER, BuiltinOperator_BCQ_FULLY_CONNECTED, @@ -1191,13 +1245,28 @@ inline const BuiltinOperator (&EnumValuesBuiltinOperator())[150] BuiltinOperator_READ_VARIABLE, BuiltinOperator_ASSIGN_VARIABLE, BuiltinOperator_BROADCAST_ARGS, - BuiltinOperator_RANDOM_STANDARD_NORMAL}; + BuiltinOperator_RANDOM_STANDARD_NORMAL, + BuiltinOperator_BUCKETIZE, + BuiltinOperator_RANDOM_UNIFORM, + BuiltinOperator_MULTINOMIAL, + BuiltinOperator_GELU, + BuiltinOperator_DYNAMIC_UPDATE_SLICE, + BuiltinOperator_RELU_0_TO_1, + BuiltinOperator_UNSORTED_SEGMENT_PROD, + BuiltinOperator_UNSORTED_SEGMENT_MAX, + BuiltinOperator_UNSORTED_SEGMENT_SUM, + BuiltinOperator_ATAN2, + BuiltinOperator_UNSORTED_SEGMENT_MIN, + BuiltinOperator_SIGN, + BuiltinOperator_BITCAST, + BuiltinOperator_BITWISE_XOR, + BuiltinOperator_RIGHT_SHIFT}; return values; } inline const char *const *EnumNamesBuiltinOperator() { - static const char *const names[152] = {"BCQ_GATHER", + static const char *const names[167] = {"BCQ_GATHER", "BCQ_FULLY_CONNECTED", "INSTANCE_NORM", "", @@ -1348,14 +1417,28 @@ inline const char *const *EnumNamesBuiltinOperator() "ASSIGN_VARIABLE", "BROADCAST_ARGS", "RANDOM_STANDARD_NORMAL", + "BUCKETIZE", + "RANDOM_UNIFORM", + "MULTINOMIAL", + "GELU", + "DYNAMIC_UPDATE_SLICE", + "RELU_0_TO_1", + "UNSORTED_SEGMENT_PROD", + "UNSORTED_SEGMENT_MAX", + "UNSORTED_SEGMENT_SUM", + "ATAN2", + "UNSORTED_SEGMENT_MIN", + "SIGN", + "BITCAST", + "BITWISE_XOR", + "RIGHT_SHIFT", nullptr}; return names; } inline const char *EnumNameBuiltinOperator(BuiltinOperator e) { - if (flatbuffers::IsOutRange(e, BuiltinOperator_BCQ_GATHER, - BuiltinOperator_RANDOM_STANDARD_NORMAL)) + if (flatbuffers::IsOutRange(e, BuiltinOperator_BCQ_GATHER, BuiltinOperator_RIGHT_SHIFT)) return ""; const size_t index = static_cast(e) - static_cast(BuiltinOperator_BCQ_GATHER); return EnumNamesBuiltinOperator()[index]; @@ -1478,6 +1561,18 @@ enum BuiltinOptions : uint8_t BuiltinOptions_ReadVariableOptions = 112, BuiltinOptions_AssignVariableOptions = 113, BuiltinOptions_RandomOptions = 114, + BuiltinOptions_BucketizeOptions = 115, + BuiltinOptions_GeluOptions = 116, + BuiltinOptions_DynamicUpdateSliceOptions = 117, + BuiltinOptions_UnsortedSegmentProdOptions = 118, + BuiltinOptions_UnsortedSegmentMaxOptions = 119, + BuiltinOptions_UnsortedSegmentMinOptions = 120, + BuiltinOptions_UnsortedSegmentSumOptions = 121, + BuiltinOptions_ATan2Options = 122, + BuiltinOptions_SignOptions = 123, + BuiltinOptions_BitcastOptions = 124, + BuiltinOptions_BitwiseXorOptions = 125, + BuiltinOptions_RightShiftOptions = 126, BuiltinOptions_BCQGatherOptions = 252, BuiltinOptions_BCQFullyConnectedOptions = 253, BuiltinOptions_InstanceNormOptions = 254, @@ -1485,7 +1580,7 @@ enum BuiltinOptions : uint8_t BuiltinOptions_MAX = BuiltinOptions_InstanceNormOptions }; -inline const BuiltinOptions (&EnumValuesBuiltinOptions())[118] +inline const BuiltinOptions (&EnumValuesBuiltinOptions())[130] { static const BuiltinOptions values[] = {BuiltinOptions_NONE, BuiltinOptions_Conv2DOptions, @@ -1602,6 +1697,18 @@ inline const BuiltinOptions (&EnumValuesBuiltinOptions())[118] BuiltinOptions_ReadVariableOptions, BuiltinOptions_AssignVariableOptions, BuiltinOptions_RandomOptions, + BuiltinOptions_BucketizeOptions, + BuiltinOptions_GeluOptions, + BuiltinOptions_DynamicUpdateSliceOptions, + BuiltinOptions_UnsortedSegmentProdOptions, + BuiltinOptions_UnsortedSegmentMaxOptions, + BuiltinOptions_UnsortedSegmentMinOptions, + BuiltinOptions_UnsortedSegmentSumOptions, + BuiltinOptions_ATan2Options, + BuiltinOptions_SignOptions, + BuiltinOptions_BitcastOptions, + BuiltinOptions_BitwiseXorOptions, + BuiltinOptions_RightShiftOptions, BuiltinOptions_BCQGatherOptions, BuiltinOptions_BCQFullyConnectedOptions, BuiltinOptions_InstanceNormOptions}; @@ -1725,18 +1832,18 @@ inline const char *const *EnumNamesBuiltinOptions() "ReadVariableOptions", "AssignVariableOptions", "RandomOptions", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", + "BucketizeOptions", + "GeluOptions", + "DynamicUpdateSliceOptions", + "UnsortedSegmentProdOptions", + "UnsortedSegmentMaxOptions", + "UnsortedSegmentMinOptions", + "UnsortedSegmentSumOptions", + "ATan2Options", + "SignOptions", + "BitcastOptions", + "BitwiseXorOptions", + "RightShiftOptions", "", "", "", @@ -2452,6 +2559,66 @@ template <> struct BuiltinOptionsTraits static const BuiltinOptions enum_value = BuiltinOptions_RandomOptions; }; +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_BucketizeOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_GeluOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_DynamicUpdateSliceOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_UnsortedSegmentProdOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_UnsortedSegmentMaxOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_UnsortedSegmentMinOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_UnsortedSegmentSumOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_ATan2Options; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_SignOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_BitcastOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_BitwiseXorOptions; +}; + +template <> struct BuiltinOptionsTraits +{ + static const BuiltinOptions enum_value = BuiltinOptions_RightShiftOptions; +}; + template <> struct BuiltinOptionsTraits { static const BuiltinOptions enum_value = BuiltinOptions_BCQGatherOptions; @@ -3824,6 +3991,147 @@ struct BuiltinOptionsUnion ? reinterpret_cast(value) : nullptr; } + circle::BucketizeOptionsT *AsBucketizeOptions() + { + return type == BuiltinOptions_BucketizeOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::BucketizeOptionsT *AsBucketizeOptions() const + { + return type == BuiltinOptions_BucketizeOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::GeluOptionsT *AsGeluOptions() + { + return type == BuiltinOptions_GeluOptions ? reinterpret_cast(value) + : nullptr; + } + const circle::GeluOptionsT *AsGeluOptions() const + { + return type == BuiltinOptions_GeluOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::DynamicUpdateSliceOptionsT *AsDynamicUpdateSliceOptions() + { + return type == BuiltinOptions_DynamicUpdateSliceOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::DynamicUpdateSliceOptionsT *AsDynamicUpdateSliceOptions() const + { + return type == BuiltinOptions_DynamicUpdateSliceOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::UnsortedSegmentProdOptionsT *AsUnsortedSegmentProdOptions() + { + return type == BuiltinOptions_UnsortedSegmentProdOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::UnsortedSegmentProdOptionsT *AsUnsortedSegmentProdOptions() const + { + return type == BuiltinOptions_UnsortedSegmentProdOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::UnsortedSegmentMaxOptionsT *AsUnsortedSegmentMaxOptions() + { + return type == BuiltinOptions_UnsortedSegmentMaxOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::UnsortedSegmentMaxOptionsT *AsUnsortedSegmentMaxOptions() const + { + return type == BuiltinOptions_UnsortedSegmentMaxOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::UnsortedSegmentMinOptionsT *AsUnsortedSegmentMinOptions() + { + return type == BuiltinOptions_UnsortedSegmentMinOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::UnsortedSegmentMinOptionsT *AsUnsortedSegmentMinOptions() const + { + return type == BuiltinOptions_UnsortedSegmentMinOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::UnsortedSegmentSumOptionsT *AsUnsortedSegmentSumOptions() + { + return type == BuiltinOptions_UnsortedSegmentSumOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::UnsortedSegmentSumOptionsT *AsUnsortedSegmentSumOptions() const + { + return type == BuiltinOptions_UnsortedSegmentSumOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::ATan2OptionsT *AsATan2Options() + { + return type == BuiltinOptions_ATan2Options ? reinterpret_cast(value) + : nullptr; + } + const circle::ATan2OptionsT *AsATan2Options() const + { + return type == BuiltinOptions_ATan2Options + ? reinterpret_cast(value) + : nullptr; + } + circle::SignOptionsT *AsSignOptions() + { + return type == BuiltinOptions_SignOptions ? reinterpret_cast(value) + : nullptr; + } + const circle::SignOptionsT *AsSignOptions() const + { + return type == BuiltinOptions_SignOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::BitcastOptionsT *AsBitcastOptions() + { + return type == BuiltinOptions_BitcastOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::BitcastOptionsT *AsBitcastOptions() const + { + return type == BuiltinOptions_BitcastOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::BitwiseXorOptionsT *AsBitwiseXorOptions() + { + return type == BuiltinOptions_BitwiseXorOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::BitwiseXorOptionsT *AsBitwiseXorOptions() const + { + return type == BuiltinOptions_BitwiseXorOptions + ? reinterpret_cast(value) + : nullptr; + } + circle::RightShiftOptionsT *AsRightShiftOptions() + { + return type == BuiltinOptions_RightShiftOptions + ? reinterpret_cast(value) + : nullptr; + } + const circle::RightShiftOptionsT *AsRightShiftOptions() const + { + return type == BuiltinOptions_RightShiftOptions + ? reinterpret_cast(value) + : nullptr; + } circle::BCQGatherOptionsT *AsBCQGatherOptions() { return type == BuiltinOptions_BCQGatherOptions @@ -4909,6 +5217,100 @@ flatbuffers::Offset CreateSparsityParameters(flatbuffers::FlatBufferBuilder &_fbb, const SparsityParametersT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr); +struct VariantSubTypeT : public flatbuffers::NativeTable +{ + typedef VariantSubType TableType; + std::vector shape{}; + circle::TensorType type = circle::TensorType_FLOAT32; + bool has_rank = false; +}; + +struct VariantSubType FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef VariantSubTypeT NativeTableType; + typedef VariantSubTypeBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + { + VT_SHAPE = 4, + VT_TYPE = 6, + VT_HAS_RANK = 8 + }; + const flatbuffers::Vector *shape() const + { + return GetPointer *>(VT_SHAPE); + } + circle::TensorType type() const + { + return static_cast(GetField(VT_TYPE, 0)); + } + bool has_rank() const { return GetField(VT_HAS_RANK, 0) != 0; } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_SHAPE) && + verifier.VerifyVector(shape()) && VerifyField(verifier, VT_TYPE) && + VerifyField(verifier, VT_HAS_RANK) && verifier.EndTable(); + } + VariantSubTypeT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(VariantSubTypeT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const VariantSubTypeT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct VariantSubTypeBuilder +{ + typedef VariantSubType Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_shape(flatbuffers::Offset> shape) + { + fbb_.AddOffset(VariantSubType::VT_SHAPE, shape); + } + void add_type(circle::TensorType type) + { + fbb_.AddElement(VariantSubType::VT_TYPE, static_cast(type), 0); + } + void add_has_rank(bool has_rank) + { + fbb_.AddElement(VariantSubType::VT_HAS_RANK, static_cast(has_rank), 0); + } + explicit VariantSubTypeBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + { + start_ = fbb_.StartTable(); + } + flatbuffers::Offset Finish() + { + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; + } +}; + +inline flatbuffers::Offset +CreateVariantSubType(flatbuffers::FlatBufferBuilder &_fbb, + flatbuffers::Offset> shape = 0, + circle::TensorType type = circle::TensorType_FLOAT32, bool has_rank = false) +{ + VariantSubTypeBuilder builder_(_fbb); + builder_.add_shape(shape); + builder_.add_has_rank(has_rank); + builder_.add_type(type); + return builder_.Finish(); +} + +inline flatbuffers::Offset CreateVariantSubTypeDirect( + flatbuffers::FlatBufferBuilder &_fbb, const std::vector *shape = nullptr, + circle::TensorType type = circle::TensorType_FLOAT32, bool has_rank = false) +{ + auto shape__ = shape ? _fbb.CreateVector(*shape) : 0; + return circle::CreateVariantSubType(_fbb, shape__, type, has_rank); +} + +flatbuffers::Offset +CreateVariantSubType(flatbuffers::FlatBufferBuilder &_fbb, const VariantSubTypeT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + struct TensorT : public flatbuffers::NativeTable { typedef Tensor TableType; @@ -4920,6 +5322,8 @@ struct TensorT : public flatbuffers::NativeTable bool is_variable = false; std::unique_ptr sparsity{}; std::vector shape_signature{}; + bool has_rank = false; + std::vector> variant_tensors{}; }; struct Tensor FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table @@ -4935,7 +5339,9 @@ struct Tensor FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table VT_QUANTIZATION = 12, VT_IS_VARIABLE = 14, VT_SPARSITY = 16, - VT_SHAPE_SIGNATURE = 18 + VT_SHAPE_SIGNATURE = 18, + VT_HAS_RANK = 20, + VT_VARIANT_TENSORS = 22 }; const flatbuffers::Vector *shape() const { @@ -4963,6 +5369,12 @@ struct Tensor FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { return GetPointer *>(VT_SHAPE_SIGNATURE); } + bool has_rank() const { return GetField(VT_HAS_RANK, 0) != 0; } + const flatbuffers::Vector> *variant_tensors() const + { + return GetPointer> *>( + VT_VARIANT_TENSORS); + } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_SHAPE) && @@ -4972,7 +5384,9 @@ struct Tensor FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table verifier.VerifyTable(quantization()) && VerifyField(verifier, VT_IS_VARIABLE) && VerifyOffset(verifier, VT_SPARSITY) && verifier.VerifyTable(sparsity()) && VerifyOffset(verifier, VT_SHAPE_SIGNATURE) && verifier.VerifyVector(shape_signature()) && - verifier.EndTable(); + VerifyField(verifier, VT_HAS_RANK) && + VerifyOffset(verifier, VT_VARIANT_TENSORS) && verifier.VerifyVector(variant_tensors()) && + verifier.VerifyVectorOfTables(variant_tensors()) && verifier.EndTable(); } TensorT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; void UnPackTo(TensorT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; @@ -5015,6 +5429,16 @@ struct TensorBuilder { fbb_.AddOffset(Tensor::VT_SHAPE_SIGNATURE, shape_signature); } + void add_has_rank(bool has_rank) + { + fbb_.AddElement(Tensor::VT_HAS_RANK, static_cast(has_rank), 0); + } + void add_variant_tensors( + flatbuffers::Offset>> + variant_tensors) + { + fbb_.AddOffset(Tensor::VT_VARIANT_TENSORS, variant_tensors); + } explicit TensorBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); @@ -5027,22 +5451,25 @@ struct TensorBuilder } }; -inline flatbuffers::Offset -CreateTensor(flatbuffers::FlatBufferBuilder &_fbb, - flatbuffers::Offset> shape = 0, - circle::TensorType type = circle::TensorType_FLOAT32, uint32_t buffer = 0, - flatbuffers::Offset name = 0, - flatbuffers::Offset quantization = 0, - bool is_variable = false, flatbuffers::Offset sparsity = 0, - flatbuffers::Offset> shape_signature = 0) +inline flatbuffers::Offset CreateTensor( + flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset> shape = 0, + circle::TensorType type = circle::TensorType_FLOAT32, uint32_t buffer = 0, + flatbuffers::Offset name = 0, + flatbuffers::Offset quantization = 0, bool is_variable = false, + flatbuffers::Offset sparsity = 0, + flatbuffers::Offset> shape_signature = 0, bool has_rank = false, + flatbuffers::Offset>> + variant_tensors = 0) { TensorBuilder builder_(_fbb); + builder_.add_variant_tensors(variant_tensors); builder_.add_shape_signature(shape_signature); builder_.add_sparsity(sparsity); builder_.add_quantization(quantization); builder_.add_name(name); builder_.add_buffer(buffer); builder_.add_shape(shape); + builder_.add_has_rank(has_rank); builder_.add_is_variable(is_variable); builder_.add_type(type); return builder_.Finish(); @@ -5053,13 +5480,18 @@ inline flatbuffers::Offset CreateTensorDirect( circle::TensorType type = circle::TensorType_FLOAT32, uint32_t buffer = 0, const char *name = nullptr, flatbuffers::Offset quantization = 0, bool is_variable = false, flatbuffers::Offset sparsity = 0, - const std::vector *shape_signature = nullptr) + const std::vector *shape_signature = nullptr, bool has_rank = false, + const std::vector> *variant_tensors = nullptr) { auto shape__ = shape ? _fbb.CreateVector(*shape) : 0; auto name__ = name ? _fbb.CreateString(name) : 0; auto shape_signature__ = shape_signature ? _fbb.CreateVector(*shape_signature) : 0; + auto variant_tensors__ = + variant_tensors + ? _fbb.CreateVector>(*variant_tensors) + : 0; return circle::CreateTensor(_fbb, shape__, type, buffer, name__, quantization, is_variable, - sparsity, shape_signature__); + sparsity, shape_signature__, has_rank, variant_tensors__); } flatbuffers::Offset @@ -6745,6 +7177,7 @@ struct UnidirectionalSequenceLSTMOptionsT : public flatbuffers::NativeTable float proj_clip = 0.0f; bool time_major = false; bool asymmetric_quantize_inputs = false; + bool diagonal_recurrent_tensors = false; }; struct UnidirectionalSequenceLSTMOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table @@ -6757,7 +7190,8 @@ struct UnidirectionalSequenceLSTMOptions FLATBUFFERS_FINAL_CLASS : private flatb VT_CELL_CLIP = 6, VT_PROJ_CLIP = 8, VT_TIME_MAJOR = 10, - VT_ASYMMETRIC_QUANTIZE_INPUTS = 12 + VT_ASYMMETRIC_QUANTIZE_INPUTS = 12, + VT_DIAGONAL_RECURRENT_TENSORS = 14 }; circle::ActivationFunctionType fused_activation_function() const { @@ -6771,6 +7205,10 @@ struct UnidirectionalSequenceLSTMOptions FLATBUFFERS_FINAL_CLASS : private flatb { return GetField(VT_ASYMMETRIC_QUANTIZE_INPUTS, 0) != 0; } + bool diagonal_recurrent_tensors() const + { + return GetField(VT_DIAGONAL_RECURRENT_TENSORS, 0) != 0; + } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && @@ -6778,7 +7216,8 @@ struct UnidirectionalSequenceLSTMOptions FLATBUFFERS_FINAL_CLASS : private flatb VerifyField(verifier, VT_CELL_CLIP) && VerifyField(verifier, VT_PROJ_CLIP) && VerifyField(verifier, VT_TIME_MAJOR) && - VerifyField(verifier, VT_ASYMMETRIC_QUANTIZE_INPUTS) && verifier.EndTable(); + VerifyField(verifier, VT_ASYMMETRIC_QUANTIZE_INPUTS) && + VerifyField(verifier, VT_DIAGONAL_RECURRENT_TENSORS) && verifier.EndTable(); } UnidirectionalSequenceLSTMOptionsT * UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; @@ -6817,6 +7256,11 @@ struct UnidirectionalSequenceLSTMOptionsBuilder fbb_.AddElement(UnidirectionalSequenceLSTMOptions::VT_ASYMMETRIC_QUANTIZE_INPUTS, static_cast(asymmetric_quantize_inputs), 0); } + void add_diagonal_recurrent_tensors(bool diagonal_recurrent_tensors) + { + fbb_.AddElement(UnidirectionalSequenceLSTMOptions::VT_DIAGONAL_RECURRENT_TENSORS, + static_cast(diagonal_recurrent_tensors), 0); + } explicit UnidirectionalSequenceLSTMOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { @@ -6835,11 +7279,12 @@ CreateUnidirectionalSequenceLSTMOptions( flatbuffers::FlatBufferBuilder &_fbb, circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE, float cell_clip = 0.0f, float proj_clip = 0.0f, bool time_major = false, - bool asymmetric_quantize_inputs = false) + bool asymmetric_quantize_inputs = false, bool diagonal_recurrent_tensors = false) { UnidirectionalSequenceLSTMOptionsBuilder builder_(_fbb); builder_.add_proj_clip(proj_clip); builder_.add_cell_clip(cell_clip); + builder_.add_diagonal_recurrent_tensors(diagonal_recurrent_tensors); builder_.add_asymmetric_quantize_inputs(asymmetric_quantize_inputs); builder_.add_time_major(time_major); builder_.add_fused_activation_function(fused_activation_function); @@ -9216,6 +9661,7 @@ struct TransposeConvOptionsT : public flatbuffers::NativeTable circle::Padding padding = circle::Padding_SAME; int32_t stride_w = 0; int32_t stride_h = 0; + circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE; }; struct TransposeConvOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table @@ -9226,7 +9672,8 @@ struct TransposeConvOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { VT_PADDING = 4, VT_STRIDE_W = 6, - VT_STRIDE_H = 8 + VT_STRIDE_H = 8, + VT_FUSED_ACTIVATION_FUNCTION = 10 }; circle::Padding padding() const { @@ -9234,11 +9681,17 @@ struct TransposeConvOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table } int32_t stride_w() const { return GetField(VT_STRIDE_W, 0); } int32_t stride_h() const { return GetField(VT_STRIDE_H, 0); } + circle::ActivationFunctionType fused_activation_function() const + { + return static_cast( + GetField(VT_FUSED_ACTIVATION_FUNCTION, 0)); + } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_PADDING) && VerifyField(verifier, VT_STRIDE_W) && - VerifyField(verifier, VT_STRIDE_H) && verifier.EndTable(); + VerifyField(verifier, VT_STRIDE_H) && + VerifyField(verifier, VT_FUSED_ACTIVATION_FUNCTION) && verifier.EndTable(); } TransposeConvOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; void UnPackTo(TransposeConvOptionsT *_o, @@ -9265,6 +9718,11 @@ struct TransposeConvOptionsBuilder { fbb_.AddElement(TransposeConvOptions::VT_STRIDE_H, stride_h, 0); } + void add_fused_activation_function(circle::ActivationFunctionType fused_activation_function) + { + fbb_.AddElement(TransposeConvOptions::VT_FUSED_ACTIVATION_FUNCTION, + static_cast(fused_activation_function), 0); + } explicit TransposeConvOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); @@ -9277,14 +9735,15 @@ struct TransposeConvOptionsBuilder } }; -inline flatbuffers::Offset -CreateTransposeConvOptions(flatbuffers::FlatBufferBuilder &_fbb, - circle::Padding padding = circle::Padding_SAME, int32_t stride_w = 0, - int32_t stride_h = 0) +inline flatbuffers::Offset CreateTransposeConvOptions( + flatbuffers::FlatBufferBuilder &_fbb, circle::Padding padding = circle::Padding_SAME, + int32_t stride_w = 0, int32_t stride_h = 0, + circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE) { TransposeConvOptionsBuilder builder_(_fbb); builder_.add_stride_h(stride_h); builder_.add_stride_w(stride_w); + builder_.add_fused_activation_function(fused_activation_function); builder_.add_padding(padding); return builder_.Finish(); } @@ -12289,8 +12748,8 @@ CreateAssignVariableOptions(flatbuffers::FlatBufferBuilder &_fbb, const AssignVa struct RandomOptionsT : public flatbuffers::NativeTable { typedef RandomOptions TableType; - int32_t seed = 0; - int32_t seed2 = 0; + int64_t seed = 0; + int64_t seed2 = 0; }; struct RandomOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table @@ -12302,12 +12761,12 @@ struct RandomOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table VT_SEED = 4, VT_SEED2 = 6 }; - int32_t seed() const { return GetField(VT_SEED, 0); } - int32_t seed2() const { return GetField(VT_SEED2, 0); } + int64_t seed() const { return GetField(VT_SEED, 0); } + int64_t seed2() const { return GetField(VT_SEED2, 0); } bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && VerifyField(verifier, VT_SEED) && - VerifyField(verifier, VT_SEED2) && verifier.EndTable(); + return VerifyTableStart(verifier) && VerifyField(verifier, VT_SEED) && + VerifyField(verifier, VT_SEED2) && verifier.EndTable(); } RandomOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; void UnPackTo(RandomOptionsT *_o, @@ -12322,8 +12781,8 @@ struct RandomOptionsBuilder typedef RandomOptions Table; flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_seed(int32_t seed) { fbb_.AddElement(RandomOptions::VT_SEED, seed, 0); } - void add_seed2(int32_t seed2) { fbb_.AddElement(RandomOptions::VT_SEED2, seed2, 0); } + void add_seed(int64_t seed) { fbb_.AddElement(RandomOptions::VT_SEED, seed, 0); } + void add_seed2(int64_t seed2) { fbb_.AddElement(RandomOptions::VT_SEED2, seed2, 0); } explicit RandomOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); @@ -12337,7 +12796,7 @@ struct RandomOptionsBuilder }; inline flatbuffers::Offset CreateRandomOptions(flatbuffers::FlatBufferBuilder &_fbb, - int32_t seed = 0, int32_t seed2 = 0) + int64_t seed = 0, int64_t seed2 = 0) { RandomOptionsBuilder builder_(_fbb); builder_.add_seed2(seed2); @@ -12349,1273 +12808,1977 @@ flatbuffers::Offset CreateRandomOptions(flatbuffers::FlatBufferBuilder &_fbb, const RandomOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr); -struct BCQGatherOptionsT : public flatbuffers::NativeTable +struct BucketizeOptionsT : public flatbuffers::NativeTable { - typedef BCQGatherOptions TableType; - int32_t input_hidden_size = 0; - int32_t axis = 0; + typedef BucketizeOptions TableType; + std::vector boundaries{}; }; -struct BCQGatherOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +struct BucketizeOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - typedef BCQGatherOptionsT NativeTableType; - typedef BCQGatherOptionsBuilder Builder; + typedef BucketizeOptionsT NativeTableType; + typedef BucketizeOptionsBuilder Builder; enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { - VT_INPUT_HIDDEN_SIZE = 4, - VT_AXIS = 6 + VT_BOUNDARIES = 4 }; - int32_t input_hidden_size() const { return GetField(VT_INPUT_HIDDEN_SIZE, 0); } - int32_t axis() const { return GetField(VT_AXIS, 0); } + const flatbuffers::Vector *boundaries() const + { + return GetPointer *>(VT_BOUNDARIES); + } bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && VerifyField(verifier, VT_INPUT_HIDDEN_SIZE) && - VerifyField(verifier, VT_AXIS) && verifier.EndTable(); + return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_BOUNDARIES) && + verifier.VerifyVector(boundaries()) && verifier.EndTable(); } - BCQGatherOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(BCQGatherOptionsT *_o, + BucketizeOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(BucketizeOptionsT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const BCQGatherOptionsT *_o, + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const BucketizeOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr); }; -struct BCQGatherOptionsBuilder +struct BucketizeOptionsBuilder { - typedef BCQGatherOptions Table; + typedef BucketizeOptions Table; flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_input_hidden_size(int32_t input_hidden_size) + void add_boundaries(flatbuffers::Offset> boundaries) { - fbb_.AddElement(BCQGatherOptions::VT_INPUT_HIDDEN_SIZE, input_hidden_size, 0); + fbb_.AddOffset(BucketizeOptions::VT_BOUNDARIES, boundaries); } - void add_axis(int32_t axis) { fbb_.AddElement(BCQGatherOptions::VT_AXIS, axis, 0); } - explicit BCQGatherOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + explicit BucketizeOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } - flatbuffers::Offset Finish() + flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); + auto o = flatbuffers::Offset(end); return o; } }; -inline flatbuffers::Offset -CreateBCQGatherOptions(flatbuffers::FlatBufferBuilder &_fbb, int32_t input_hidden_size = 0, - int32_t axis = 0) +inline flatbuffers::Offset +CreateBucketizeOptions(flatbuffers::FlatBufferBuilder &_fbb, + flatbuffers::Offset> boundaries = 0) { - BCQGatherOptionsBuilder builder_(_fbb); - builder_.add_axis(axis); - builder_.add_input_hidden_size(input_hidden_size); + BucketizeOptionsBuilder builder_(_fbb); + builder_.add_boundaries(boundaries); return builder_.Finish(); } -flatbuffers::Offset -CreateBCQGatherOptions(flatbuffers::FlatBufferBuilder &_fbb, const BCQGatherOptionsT *_o, +inline flatbuffers::Offset +CreateBucketizeOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, + const std::vector *boundaries = nullptr) +{ + auto boundaries__ = boundaries ? _fbb.CreateVector(*boundaries) : 0; + return circle::CreateBucketizeOptions(_fbb, boundaries__); +} + +flatbuffers::Offset +CreateBucketizeOptions(flatbuffers::FlatBufferBuilder &_fbb, const BucketizeOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr); -struct BCQFullyConnectedOptionsT : public flatbuffers::NativeTable +struct GeluOptionsT : public flatbuffers::NativeTable { - typedef BCQFullyConnectedOptions TableType; - int32_t weights_hidden_size = 0; - circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE; + typedef GeluOptions TableType; + bool approximate = false; }; -struct BCQFullyConnectedOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +struct GeluOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - typedef BCQFullyConnectedOptionsT NativeTableType; - typedef BCQFullyConnectedOptionsBuilder Builder; + typedef GeluOptionsT NativeTableType; + typedef GeluOptionsBuilder Builder; enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { - VT_WEIGHTS_HIDDEN_SIZE = 4, - VT_FUSED_ACTIVATION_FUNCTION = 6 + VT_APPROXIMATE = 4 }; - int32_t weights_hidden_size() const { return GetField(VT_WEIGHTS_HIDDEN_SIZE, 0); } - circle::ActivationFunctionType fused_activation_function() const - { - return static_cast( - GetField(VT_FUSED_ACTIVATION_FUNCTION, 0)); - } + bool approximate() const { return GetField(VT_APPROXIMATE, 0) != 0; } bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && VerifyField(verifier, VT_WEIGHTS_HIDDEN_SIZE) && - VerifyField(verifier, VT_FUSED_ACTIVATION_FUNCTION) && verifier.EndTable(); + return VerifyTableStart(verifier) && VerifyField(verifier, VT_APPROXIMATE) && + verifier.EndTable(); } - BCQFullyConnectedOptionsT * - UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(BCQFullyConnectedOptionsT *_o, + GeluOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(GeluOptionsT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const BCQFullyConnectedOptionsT *_o, + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const GeluOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr); }; -struct BCQFullyConnectedOptionsBuilder +struct GeluOptionsBuilder { - typedef BCQFullyConnectedOptions Table; + typedef GeluOptions Table; flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_weights_hidden_size(int32_t weights_hidden_size) - { - fbb_.AddElement(BCQFullyConnectedOptions::VT_WEIGHTS_HIDDEN_SIZE, weights_hidden_size, - 0); - } - void add_fused_activation_function(circle::ActivationFunctionType fused_activation_function) + void add_approximate(bool approximate) { - fbb_.AddElement(BCQFullyConnectedOptions::VT_FUSED_ACTIVATION_FUNCTION, - static_cast(fused_activation_function), 0); + fbb_.AddElement(GeluOptions::VT_APPROXIMATE, static_cast(approximate), 0); } - explicit BCQFullyConnectedOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + explicit GeluOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } - flatbuffers::Offset Finish() + flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); + auto o = flatbuffers::Offset(end); return o; } }; -inline flatbuffers::Offset CreateBCQFullyConnectedOptions( - flatbuffers::FlatBufferBuilder &_fbb, int32_t weights_hidden_size = 0, - circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE) +inline flatbuffers::Offset CreateGeluOptions(flatbuffers::FlatBufferBuilder &_fbb, + bool approximate = false) { - BCQFullyConnectedOptionsBuilder builder_(_fbb); - builder_.add_weights_hidden_size(weights_hidden_size); - builder_.add_fused_activation_function(fused_activation_function); + GeluOptionsBuilder builder_(_fbb); + builder_.add_approximate(approximate); return builder_.Finish(); } -flatbuffers::Offset -CreateBCQFullyConnectedOptions(flatbuffers::FlatBufferBuilder &_fbb, - const BCQFullyConnectedOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); +flatbuffers::Offset +CreateGeluOptions(flatbuffers::FlatBufferBuilder &_fbb, const GeluOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); -struct InstanceNormOptionsT : public flatbuffers::NativeTable +struct DynamicUpdateSliceOptionsT : public flatbuffers::NativeTable { - typedef InstanceNormOptions TableType; - float epsilon = 0.0f; - circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE; + typedef DynamicUpdateSliceOptions TableType; }; -struct InstanceNormOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +struct DynamicUpdateSliceOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - typedef InstanceNormOptionsT NativeTableType; - typedef InstanceNormOptionsBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE - { - VT_EPSILON = 4, - VT_FUSED_ACTIVATION_FUNCTION = 6 - }; - float epsilon() const { return GetField(VT_EPSILON, 0.0f); } - circle::ActivationFunctionType fused_activation_function() const - { - return static_cast( - GetField(VT_FUSED_ACTIVATION_FUNCTION, 0)); - } + typedef DynamicUpdateSliceOptionsT NativeTableType; + typedef DynamicUpdateSliceOptionsBuilder Builder; bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && VerifyField(verifier, VT_EPSILON) && - VerifyField(verifier, VT_FUSED_ACTIVATION_FUNCTION) && verifier.EndTable(); + return VerifyTableStart(verifier) && verifier.EndTable(); } - InstanceNormOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(InstanceNormOptionsT *_o, + DynamicUpdateSliceOptionsT * + UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(DynamicUpdateSliceOptionsT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const InstanceNormOptionsT *_o, + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const DynamicUpdateSliceOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr); }; -struct InstanceNormOptionsBuilder +struct DynamicUpdateSliceOptionsBuilder { - typedef InstanceNormOptions Table; + typedef DynamicUpdateSliceOptions Table; flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_epsilon(float epsilon) - { - fbb_.AddElement(InstanceNormOptions::VT_EPSILON, epsilon, 0.0f); - } - void add_fused_activation_function(circle::ActivationFunctionType fused_activation_function) - { - fbb_.AddElement(InstanceNormOptions::VT_FUSED_ACTIVATION_FUNCTION, - static_cast(fused_activation_function), 0); - } - explicit InstanceNormOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + explicit DynamicUpdateSliceOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } - flatbuffers::Offset Finish() + flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); + auto o = flatbuffers::Offset(end); return o; } }; -inline flatbuffers::Offset CreateInstanceNormOptions( - flatbuffers::FlatBufferBuilder &_fbb, float epsilon = 0.0f, - circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE) +inline flatbuffers::Offset +CreateDynamicUpdateSliceOptions(flatbuffers::FlatBufferBuilder &_fbb) { - InstanceNormOptionsBuilder builder_(_fbb); - builder_.add_epsilon(epsilon); - builder_.add_fused_activation_function(fused_activation_function); + DynamicUpdateSliceOptionsBuilder builder_(_fbb); return builder_.Finish(); } -flatbuffers::Offset -CreateInstanceNormOptions(flatbuffers::FlatBufferBuilder &_fbb, const InstanceNormOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); +flatbuffers::Offset +CreateDynamicUpdateSliceOptions(flatbuffers::FlatBufferBuilder &_fbb, + const DynamicUpdateSliceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); -struct OperatorCodeT : public flatbuffers::NativeTable +struct UnsortedSegmentProdOptionsT : public flatbuffers::NativeTable { - typedef OperatorCode TableType; - int8_t deprecated_builtin_code = 0; - std::string custom_code{}; - int32_t version = 1; - circle::BuiltinOperator builtin_code = circle::BuiltinOperator_ADD; + typedef UnsortedSegmentProdOptions TableType; }; -struct OperatorCode FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +struct UnsortedSegmentProdOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - typedef OperatorCodeT NativeTableType; - typedef OperatorCodeBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + typedef UnsortedSegmentProdOptionsT NativeTableType; + typedef UnsortedSegmentProdOptionsBuilder Builder; + bool Verify(flatbuffers::Verifier &verifier) const { - VT_DEPRECATED_BUILTIN_CODE = 4, - VT_CUSTOM_CODE = 6, - VT_VERSION = 8, - VT_BUILTIN_CODE = 10 - }; - int8_t deprecated_builtin_code() const { return GetField(VT_DEPRECATED_BUILTIN_CODE, 0); } - const flatbuffers::String *custom_code() const + return VerifyTableStart(verifier) && verifier.EndTable(); + } + UnsortedSegmentProdOptionsT * + UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(UnsortedSegmentProdOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const UnsortedSegmentProdOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct UnsortedSegmentProdOptionsBuilder +{ + typedef UnsortedSegmentProdOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + explicit UnsortedSegmentProdOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return GetPointer(VT_CUSTOM_CODE); + start_ = fbb_.StartTable(); } - int32_t version() const { return GetField(VT_VERSION, 1); } - circle::BuiltinOperator builtin_code() const + flatbuffers::Offset Finish() { - return static_cast(GetField(VT_BUILTIN_CODE, 0)); + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } +}; + +inline flatbuffers::Offset +CreateUnsortedSegmentProdOptions(flatbuffers::FlatBufferBuilder &_fbb) +{ + UnsortedSegmentProdOptionsBuilder builder_(_fbb); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateUnsortedSegmentProdOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentProdOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct UnsortedSegmentMaxOptionsT : public flatbuffers::NativeTable +{ + typedef UnsortedSegmentMaxOptions TableType; +}; + +struct UnsortedSegmentMaxOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef UnsortedSegmentMaxOptionsT NativeTableType; + typedef UnsortedSegmentMaxOptionsBuilder Builder; bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && - VerifyField(verifier, VT_DEPRECATED_BUILTIN_CODE) && - VerifyOffset(verifier, VT_CUSTOM_CODE) && verifier.VerifyString(custom_code()) && - VerifyField(verifier, VT_VERSION) && - VerifyField(verifier, VT_BUILTIN_CODE) && verifier.EndTable(); + return VerifyTableStart(verifier) && verifier.EndTable(); } - OperatorCodeT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(OperatorCodeT *_o, + UnsortedSegmentMaxOptionsT * + UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(UnsortedSegmentMaxOptionsT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const OperatorCodeT *_o, + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const UnsortedSegmentMaxOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr); }; -struct OperatorCodeBuilder +struct UnsortedSegmentMaxOptionsBuilder { - typedef OperatorCode Table; + typedef UnsortedSegmentMaxOptions Table; flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; - void add_deprecated_builtin_code(int8_t deprecated_builtin_code) - { - fbb_.AddElement(OperatorCode::VT_DEPRECATED_BUILTIN_CODE, deprecated_builtin_code, 0); - } - void add_custom_code(flatbuffers::Offset custom_code) + explicit UnsortedSegmentMaxOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - fbb_.AddOffset(OperatorCode::VT_CUSTOM_CODE, custom_code); + start_ = fbb_.StartTable(); } - void add_version(int32_t version) + flatbuffers::Offset Finish() { - fbb_.AddElement(OperatorCode::VT_VERSION, version, 1); + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - void add_builtin_code(circle::BuiltinOperator builtin_code) +}; + +inline flatbuffers::Offset +CreateUnsortedSegmentMaxOptions(flatbuffers::FlatBufferBuilder &_fbb) +{ + UnsortedSegmentMaxOptionsBuilder builder_(_fbb); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateUnsortedSegmentMaxOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentMaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct UnsortedSegmentSumOptionsT : public flatbuffers::NativeTable +{ + typedef UnsortedSegmentSumOptions TableType; +}; + +struct UnsortedSegmentSumOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef UnsortedSegmentSumOptionsT NativeTableType; + typedef UnsortedSegmentSumOptionsBuilder Builder; + bool Verify(flatbuffers::Verifier &verifier) const { - fbb_.AddElement(OperatorCode::VT_BUILTIN_CODE, static_cast(builtin_code), 0); + return VerifyTableStart(verifier) && verifier.EndTable(); } - explicit OperatorCodeBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + UnsortedSegmentSumOptionsT * + UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(UnsortedSegmentSumOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const UnsortedSegmentSumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct UnsortedSegmentSumOptionsBuilder +{ + typedef UnsortedSegmentSumOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + explicit UnsortedSegmentSumOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } - flatbuffers::Offset Finish() + flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); + auto o = flatbuffers::Offset(end); return o; } }; -inline flatbuffers::Offset -CreateOperatorCode(flatbuffers::FlatBufferBuilder &_fbb, int8_t deprecated_builtin_code = 0, - flatbuffers::Offset custom_code = 0, int32_t version = 1, - circle::BuiltinOperator builtin_code = circle::BuiltinOperator_ADD) +inline flatbuffers::Offset +CreateUnsortedSegmentSumOptions(flatbuffers::FlatBufferBuilder &_fbb) { - OperatorCodeBuilder builder_(_fbb); - builder_.add_builtin_code(builtin_code); - builder_.add_version(version); - builder_.add_custom_code(custom_code); - builder_.add_deprecated_builtin_code(deprecated_builtin_code); + UnsortedSegmentSumOptionsBuilder builder_(_fbb); return builder_.Finish(); } -inline flatbuffers::Offset -CreateOperatorCodeDirect(flatbuffers::FlatBufferBuilder &_fbb, int8_t deprecated_builtin_code = 0, - const char *custom_code = nullptr, int32_t version = 1, - circle::BuiltinOperator builtin_code = circle::BuiltinOperator_ADD) -{ - auto custom_code__ = custom_code ? _fbb.CreateString(custom_code) : 0; - return circle::CreateOperatorCode(_fbb, deprecated_builtin_code, custom_code__, version, - builtin_code); -} +flatbuffers::Offset +CreateUnsortedSegmentSumOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentSumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); -flatbuffers::Offset -CreateOperatorCode(flatbuffers::FlatBufferBuilder &_fbb, const OperatorCodeT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); +struct ATan2OptionsT : public flatbuffers::NativeTable +{ + typedef ATan2Options TableType; +}; -struct OperatorT : public flatbuffers::NativeTable +struct ATan2Options FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - typedef Operator TableType; - uint32_t opcode_index = 0; - std::vector inputs{}; - std::vector outputs{}; - circle::BuiltinOptionsUnion builtin_options{}; - std::vector custom_options{}; - circle::CustomOptionsFormat custom_options_format = circle::CustomOptionsFormat_FLEXBUFFERS; - std::vector mutating_variable_inputs{}; - std::vector intermediates{}; + typedef ATan2OptionsT NativeTableType; + typedef ATan2OptionsBuilder Builder; + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && verifier.EndTable(); + } + ATan2OptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(ATan2OptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const ATan2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); }; -struct Operator FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +struct ATan2OptionsBuilder { - typedef OperatorT NativeTableType; - typedef OperatorBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + typedef ATan2Options Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + explicit ATan2OptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - VT_OPCODE_INDEX = 4, - VT_INPUTS = 6, - VT_OUTPUTS = 8, - VT_BUILTIN_OPTIONS_TYPE = 10, - VT_BUILTIN_OPTIONS = 12, - VT_CUSTOM_OPTIONS = 14, - VT_CUSTOM_OPTIONS_FORMAT = 16, - VT_MUTATING_VARIABLE_INPUTS = 18, - VT_INTERMEDIATES = 20 - }; - uint32_t opcode_index() const { return GetField(VT_OPCODE_INDEX, 0); } - const flatbuffers::Vector *inputs() const - { - return GetPointer *>(VT_INPUTS); + start_ = fbb_.StartTable(); } - const flatbuffers::Vector *outputs() const + flatbuffers::Offset Finish() { - return GetPointer *>(VT_OUTPUTS); + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - circle::BuiltinOptions builtin_options_type() const +}; + +inline flatbuffers::Offset CreateATan2Options(flatbuffers::FlatBufferBuilder &_fbb) +{ + ATan2OptionsBuilder builder_(_fbb); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateATan2Options(flatbuffers::FlatBufferBuilder &_fbb, const ATan2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct UnsortedSegmentMinOptionsT : public flatbuffers::NativeTable +{ + typedef UnsortedSegmentMinOptions TableType; +}; + +struct UnsortedSegmentMinOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef UnsortedSegmentMinOptionsT NativeTableType; + typedef UnsortedSegmentMinOptionsBuilder Builder; + bool Verify(flatbuffers::Verifier &verifier) const { - return static_cast(GetField(VT_BUILTIN_OPTIONS_TYPE, 0)); + return VerifyTableStart(verifier) && verifier.EndTable(); } - const void *builtin_options() const { return GetPointer(VT_BUILTIN_OPTIONS); } - template const T *builtin_options_as() const; - const circle::Conv2DOptions *builtin_options_as_Conv2DOptions() const + UnsortedSegmentMinOptionsT * + UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(UnsortedSegmentMinOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const UnsortedSegmentMinOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct UnsortedSegmentMinOptionsBuilder +{ + typedef UnsortedSegmentMinOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + explicit UnsortedSegmentMinOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_Conv2DOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::DepthwiseConv2DOptions *builtin_options_as_DepthwiseConv2DOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_DepthwiseConv2DOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::ConcatEmbeddingsOptions *builtin_options_as_ConcatEmbeddingsOptions() const +}; + +inline flatbuffers::Offset +CreateUnsortedSegmentMinOptions(flatbuffers::FlatBufferBuilder &_fbb) +{ + UnsortedSegmentMinOptionsBuilder builder_(_fbb); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateUnsortedSegmentMinOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentMinOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct SignOptionsT : public flatbuffers::NativeTable +{ + typedef SignOptions TableType; +}; + +struct SignOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef SignOptionsT NativeTableType; + typedef SignOptionsBuilder Builder; + bool Verify(flatbuffers::Verifier &verifier) const { - return builtin_options_type() == circle::BuiltinOptions_ConcatEmbeddingsOptions - ? static_cast(builtin_options()) - : nullptr; + return VerifyTableStart(verifier) && verifier.EndTable(); } - const circle::LSHProjectionOptions *builtin_options_as_LSHProjectionOptions() const + SignOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(SignOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const SignOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct SignOptionsBuilder +{ + typedef SignOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + explicit SignOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_LSHProjectionOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::Pool2DOptions *builtin_options_as_Pool2DOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_Pool2DOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::SVDFOptions *builtin_options_as_SVDFOptions() const +}; + +inline flatbuffers::Offset CreateSignOptions(flatbuffers::FlatBufferBuilder &_fbb) +{ + SignOptionsBuilder builder_(_fbb); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateSignOptions(flatbuffers::FlatBufferBuilder &_fbb, const SignOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct BitcastOptionsT : public flatbuffers::NativeTable +{ + typedef BitcastOptions TableType; +}; + +struct BitcastOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef BitcastOptionsT NativeTableType; + typedef BitcastOptionsBuilder Builder; + bool Verify(flatbuffers::Verifier &verifier) const { - return builtin_options_type() == circle::BuiltinOptions_SVDFOptions - ? static_cast(builtin_options()) - : nullptr; + return VerifyTableStart(verifier) && verifier.EndTable(); } - const circle::RNNOptions *builtin_options_as_RNNOptions() const + BitcastOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(BitcastOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const BitcastOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct BitcastOptionsBuilder +{ + typedef BitcastOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + explicit BitcastOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_RNNOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::FullyConnectedOptions *builtin_options_as_FullyConnectedOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_FullyConnectedOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::SoftmaxOptions *builtin_options_as_SoftmaxOptions() const +}; + +inline flatbuffers::Offset +CreateBitcastOptions(flatbuffers::FlatBufferBuilder &_fbb) +{ + BitcastOptionsBuilder builder_(_fbb); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateBitcastOptions(flatbuffers::FlatBufferBuilder &_fbb, const BitcastOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct BitwiseXorOptionsT : public flatbuffers::NativeTable +{ + typedef BitwiseXorOptions TableType; +}; + +struct BitwiseXorOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef BitwiseXorOptionsT NativeTableType; + typedef BitwiseXorOptionsBuilder Builder; + bool Verify(flatbuffers::Verifier &verifier) const { - return builtin_options_type() == circle::BuiltinOptions_SoftmaxOptions - ? static_cast(builtin_options()) - : nullptr; + return VerifyTableStart(verifier) && verifier.EndTable(); } - const circle::ConcatenationOptions *builtin_options_as_ConcatenationOptions() const + BitwiseXorOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(BitwiseXorOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const BitwiseXorOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct BitwiseXorOptionsBuilder +{ + typedef BitwiseXorOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + explicit BitwiseXorOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_ConcatenationOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::AddOptions *builtin_options_as_AddOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_AddOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::L2NormOptions *builtin_options_as_L2NormOptions() const +}; + +inline flatbuffers::Offset +CreateBitwiseXorOptions(flatbuffers::FlatBufferBuilder &_fbb) +{ + BitwiseXorOptionsBuilder builder_(_fbb); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateBitwiseXorOptions(flatbuffers::FlatBufferBuilder &_fbb, const BitwiseXorOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct RightShiftOptionsT : public flatbuffers::NativeTable +{ + typedef RightShiftOptions TableType; +}; + +struct RightShiftOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef RightShiftOptionsT NativeTableType; + typedef RightShiftOptionsBuilder Builder; + bool Verify(flatbuffers::Verifier &verifier) const { - return builtin_options_type() == circle::BuiltinOptions_L2NormOptions - ? static_cast(builtin_options()) - : nullptr; + return VerifyTableStart(verifier) && verifier.EndTable(); } - const circle::LocalResponseNormalizationOptions * - builtin_options_as_LocalResponseNormalizationOptions() const + RightShiftOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(RightShiftOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const RightShiftOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct RightShiftOptionsBuilder +{ + typedef RightShiftOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + explicit RightShiftOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_LocalResponseNormalizationOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::LSTMOptions *builtin_options_as_LSTMOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_LSTMOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::ResizeBilinearOptions *builtin_options_as_ResizeBilinearOptions() const +}; + +inline flatbuffers::Offset +CreateRightShiftOptions(flatbuffers::FlatBufferBuilder &_fbb) +{ + RightShiftOptionsBuilder builder_(_fbb); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateRightShiftOptions(flatbuffers::FlatBufferBuilder &_fbb, const RightShiftOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct BCQGatherOptionsT : public flatbuffers::NativeTable +{ + typedef BCQGatherOptions TableType; + int32_t input_hidden_size = 0; + int32_t axis = 0; +}; + +struct BCQGatherOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef BCQGatherOptionsT NativeTableType; + typedef BCQGatherOptionsBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { - return builtin_options_type() == circle::BuiltinOptions_ResizeBilinearOptions - ? static_cast(builtin_options()) - : nullptr; + VT_INPUT_HIDDEN_SIZE = 4, + VT_AXIS = 6 + }; + int32_t input_hidden_size() const { return GetField(VT_INPUT_HIDDEN_SIZE, 0); } + int32_t axis() const { return GetField(VT_AXIS, 0); } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyField(verifier, VT_INPUT_HIDDEN_SIZE) && + VerifyField(verifier, VT_AXIS) && verifier.EndTable(); } - const circle::CallOptions *builtin_options_as_CallOptions() const + BCQGatherOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(BCQGatherOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const BCQGatherOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct BCQGatherOptionsBuilder +{ + typedef BCQGatherOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_input_hidden_size(int32_t input_hidden_size) { - return builtin_options_type() == circle::BuiltinOptions_CallOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddElement(BCQGatherOptions::VT_INPUT_HIDDEN_SIZE, input_hidden_size, 0); } - const circle::ReshapeOptions *builtin_options_as_ReshapeOptions() const + void add_axis(int32_t axis) { fbb_.AddElement(BCQGatherOptions::VT_AXIS, axis, 0); } + explicit BCQGatherOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_ReshapeOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::SkipGramOptions *builtin_options_as_SkipGramOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_SkipGramOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::SpaceToDepthOptions *builtin_options_as_SpaceToDepthOptions() const +}; + +inline flatbuffers::Offset +CreateBCQGatherOptions(flatbuffers::FlatBufferBuilder &_fbb, int32_t input_hidden_size = 0, + int32_t axis = 0) +{ + BCQGatherOptionsBuilder builder_(_fbb); + builder_.add_axis(axis); + builder_.add_input_hidden_size(input_hidden_size); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateBCQGatherOptions(flatbuffers::FlatBufferBuilder &_fbb, const BCQGatherOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct BCQFullyConnectedOptionsT : public flatbuffers::NativeTable +{ + typedef BCQFullyConnectedOptions TableType; + int32_t weights_hidden_size = 0; + circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE; +}; + +struct BCQFullyConnectedOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef BCQFullyConnectedOptionsT NativeTableType; + typedef BCQFullyConnectedOptionsBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { - return builtin_options_type() == circle::BuiltinOptions_SpaceToDepthOptions - ? static_cast(builtin_options()) - : nullptr; - } - const circle::EmbeddingLookupSparseOptions * - builtin_options_as_EmbeddingLookupSparseOptions() const + VT_WEIGHTS_HIDDEN_SIZE = 4, + VT_FUSED_ACTIVATION_FUNCTION = 6 + }; + int32_t weights_hidden_size() const { return GetField(VT_WEIGHTS_HIDDEN_SIZE, 0); } + circle::ActivationFunctionType fused_activation_function() const { - return builtin_options_type() == circle::BuiltinOptions_EmbeddingLookupSparseOptions - ? static_cast(builtin_options()) - : nullptr; + return static_cast( + GetField(VT_FUSED_ACTIVATION_FUNCTION, 0)); } - const circle::MulOptions *builtin_options_as_MulOptions() const + bool Verify(flatbuffers::Verifier &verifier) const { - return builtin_options_type() == circle::BuiltinOptions_MulOptions - ? static_cast(builtin_options()) - : nullptr; + return VerifyTableStart(verifier) && VerifyField(verifier, VT_WEIGHTS_HIDDEN_SIZE) && + VerifyField(verifier, VT_FUSED_ACTIVATION_FUNCTION) && verifier.EndTable(); } - const circle::PadOptions *builtin_options_as_PadOptions() const + BCQFullyConnectedOptionsT * + UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(BCQFullyConnectedOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const BCQFullyConnectedOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct BCQFullyConnectedOptionsBuilder +{ + typedef BCQFullyConnectedOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_weights_hidden_size(int32_t weights_hidden_size) { - return builtin_options_type() == circle::BuiltinOptions_PadOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddElement(BCQFullyConnectedOptions::VT_WEIGHTS_HIDDEN_SIZE, weights_hidden_size, + 0); } - const circle::GatherOptions *builtin_options_as_GatherOptions() const + void add_fused_activation_function(circle::ActivationFunctionType fused_activation_function) { - return builtin_options_type() == circle::BuiltinOptions_GatherOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddElement(BCQFullyConnectedOptions::VT_FUSED_ACTIVATION_FUNCTION, + static_cast(fused_activation_function), 0); } - const circle::BatchToSpaceNDOptions *builtin_options_as_BatchToSpaceNDOptions() const + explicit BCQFullyConnectedOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_BatchToSpaceNDOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::SpaceToBatchNDOptions *builtin_options_as_SpaceToBatchNDOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_SpaceToBatchNDOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::TransposeOptions *builtin_options_as_TransposeOptions() const +}; + +inline flatbuffers::Offset CreateBCQFullyConnectedOptions( + flatbuffers::FlatBufferBuilder &_fbb, int32_t weights_hidden_size = 0, + circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE) +{ + BCQFullyConnectedOptionsBuilder builder_(_fbb); + builder_.add_weights_hidden_size(weights_hidden_size); + builder_.add_fused_activation_function(fused_activation_function); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateBCQFullyConnectedOptions(flatbuffers::FlatBufferBuilder &_fbb, + const BCQFullyConnectedOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct InstanceNormOptionsT : public flatbuffers::NativeTable +{ + typedef InstanceNormOptions TableType; + float epsilon = 0.0f; + circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE; +}; + +struct InstanceNormOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef InstanceNormOptionsT NativeTableType; + typedef InstanceNormOptionsBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { - return builtin_options_type() == circle::BuiltinOptions_TransposeOptions - ? static_cast(builtin_options()) - : nullptr; - } - const circle::ReducerOptions *builtin_options_as_ReducerOptions() const + VT_EPSILON = 4, + VT_FUSED_ACTIVATION_FUNCTION = 6 + }; + float epsilon() const { return GetField(VT_EPSILON, 0.0f); } + circle::ActivationFunctionType fused_activation_function() const { - return builtin_options_type() == circle::BuiltinOptions_ReducerOptions - ? static_cast(builtin_options()) - : nullptr; + return static_cast( + GetField(VT_FUSED_ACTIVATION_FUNCTION, 0)); } - const circle::SubOptions *builtin_options_as_SubOptions() const + bool Verify(flatbuffers::Verifier &verifier) const { - return builtin_options_type() == circle::BuiltinOptions_SubOptions - ? static_cast(builtin_options()) - : nullptr; + return VerifyTableStart(verifier) && VerifyField(verifier, VT_EPSILON) && + VerifyField(verifier, VT_FUSED_ACTIVATION_FUNCTION) && verifier.EndTable(); } - const circle::DivOptions *builtin_options_as_DivOptions() const + InstanceNormOptionsT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(InstanceNormOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const InstanceNormOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct InstanceNormOptionsBuilder +{ + typedef InstanceNormOptions Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_epsilon(float epsilon) { - return builtin_options_type() == circle::BuiltinOptions_DivOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddElement(InstanceNormOptions::VT_EPSILON, epsilon, 0.0f); } - const circle::SqueezeOptions *builtin_options_as_SqueezeOptions() const + void add_fused_activation_function(circle::ActivationFunctionType fused_activation_function) { - return builtin_options_type() == circle::BuiltinOptions_SqueezeOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddElement(InstanceNormOptions::VT_FUSED_ACTIVATION_FUNCTION, + static_cast(fused_activation_function), 0); } - const circle::SequenceRNNOptions *builtin_options_as_SequenceRNNOptions() const + explicit InstanceNormOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_SequenceRNNOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::StridedSliceOptions *builtin_options_as_StridedSliceOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_StridedSliceOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::ExpOptions *builtin_options_as_ExpOptions() const +}; + +inline flatbuffers::Offset CreateInstanceNormOptions( + flatbuffers::FlatBufferBuilder &_fbb, float epsilon = 0.0f, + circle::ActivationFunctionType fused_activation_function = circle::ActivationFunctionType_NONE) +{ + InstanceNormOptionsBuilder builder_(_fbb); + builder_.add_epsilon(epsilon); + builder_.add_fused_activation_function(fused_activation_function); + return builder_.Finish(); +} + +flatbuffers::Offset +CreateInstanceNormOptions(flatbuffers::FlatBufferBuilder &_fbb, const InstanceNormOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct OperatorCodeT : public flatbuffers::NativeTable +{ + typedef OperatorCode TableType; + int8_t deprecated_builtin_code = 0; + std::string custom_code{}; + int32_t version = 1; + circle::BuiltinOperator builtin_code = circle::BuiltinOperator_ADD; +}; + +struct OperatorCode FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef OperatorCodeT NativeTableType; + typedef OperatorCodeBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { - return builtin_options_type() == circle::BuiltinOptions_ExpOptions - ? static_cast(builtin_options()) - : nullptr; - } - const circle::TopKV2Options *builtin_options_as_TopKV2Options() const + VT_DEPRECATED_BUILTIN_CODE = 4, + VT_CUSTOM_CODE = 6, + VT_VERSION = 8, + VT_BUILTIN_CODE = 10 + }; + int8_t deprecated_builtin_code() const { return GetField(VT_DEPRECATED_BUILTIN_CODE, 0); } + const flatbuffers::String *custom_code() const { - return builtin_options_type() == circle::BuiltinOptions_TopKV2Options - ? static_cast(builtin_options()) - : nullptr; + return GetPointer(VT_CUSTOM_CODE); } - const circle::SplitOptions *builtin_options_as_SplitOptions() const + int32_t version() const { return GetField(VT_VERSION, 1); } + circle::BuiltinOperator builtin_code() const { - return builtin_options_type() == circle::BuiltinOptions_SplitOptions - ? static_cast(builtin_options()) - : nullptr; + return static_cast(GetField(VT_BUILTIN_CODE, 0)); } - const circle::LogSoftmaxOptions *builtin_options_as_LogSoftmaxOptions() const + bool Verify(flatbuffers::Verifier &verifier) const { - return builtin_options_type() == circle::BuiltinOptions_LogSoftmaxOptions - ? static_cast(builtin_options()) - : nullptr; + return VerifyTableStart(verifier) && + VerifyField(verifier, VT_DEPRECATED_BUILTIN_CODE) && + VerifyOffset(verifier, VT_CUSTOM_CODE) && verifier.VerifyString(custom_code()) && + VerifyField(verifier, VT_VERSION) && + VerifyField(verifier, VT_BUILTIN_CODE) && verifier.EndTable(); } - const circle::CastOptions *builtin_options_as_CastOptions() const + OperatorCodeT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(OperatorCodeT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const OperatorCodeT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct OperatorCodeBuilder +{ + typedef OperatorCode Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_deprecated_builtin_code(int8_t deprecated_builtin_code) { - return builtin_options_type() == circle::BuiltinOptions_CastOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddElement(OperatorCode::VT_DEPRECATED_BUILTIN_CODE, deprecated_builtin_code, 0); } - const circle::DequantizeOptions *builtin_options_as_DequantizeOptions() const + void add_custom_code(flatbuffers::Offset custom_code) { - return builtin_options_type() == circle::BuiltinOptions_DequantizeOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddOffset(OperatorCode::VT_CUSTOM_CODE, custom_code); } - const circle::MaximumMinimumOptions *builtin_options_as_MaximumMinimumOptions() const + void add_version(int32_t version) { - return builtin_options_type() == circle::BuiltinOptions_MaximumMinimumOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddElement(OperatorCode::VT_VERSION, version, 1); } - const circle::ArgMaxOptions *builtin_options_as_ArgMaxOptions() const + void add_builtin_code(circle::BuiltinOperator builtin_code) { - return builtin_options_type() == circle::BuiltinOptions_ArgMaxOptions - ? static_cast(builtin_options()) - : nullptr; + fbb_.AddElement(OperatorCode::VT_BUILTIN_CODE, static_cast(builtin_code), 0); } - const circle::LessOptions *builtin_options_as_LessOptions() const + explicit OperatorCodeBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - return builtin_options_type() == circle::BuiltinOptions_LessOptions - ? static_cast(builtin_options()) - : nullptr; + start_ = fbb_.StartTable(); } - const circle::NegOptions *builtin_options_as_NegOptions() const + flatbuffers::Offset Finish() { - return builtin_options_type() == circle::BuiltinOptions_NegOptions - ? static_cast(builtin_options()) - : nullptr; + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; } - const circle::PadV2Options *builtin_options_as_PadV2Options() const +}; + +inline flatbuffers::Offset +CreateOperatorCode(flatbuffers::FlatBufferBuilder &_fbb, int8_t deprecated_builtin_code = 0, + flatbuffers::Offset custom_code = 0, int32_t version = 1, + circle::BuiltinOperator builtin_code = circle::BuiltinOperator_ADD) +{ + OperatorCodeBuilder builder_(_fbb); + builder_.add_builtin_code(builtin_code); + builder_.add_version(version); + builder_.add_custom_code(custom_code); + builder_.add_deprecated_builtin_code(deprecated_builtin_code); + return builder_.Finish(); +} + +inline flatbuffers::Offset +CreateOperatorCodeDirect(flatbuffers::FlatBufferBuilder &_fbb, int8_t deprecated_builtin_code = 0, + const char *custom_code = nullptr, int32_t version = 1, + circle::BuiltinOperator builtin_code = circle::BuiltinOperator_ADD) +{ + auto custom_code__ = custom_code ? _fbb.CreateString(custom_code) : 0; + return circle::CreateOperatorCode(_fbb, deprecated_builtin_code, custom_code__, version, + builtin_code); +} + +flatbuffers::Offset +CreateOperatorCode(flatbuffers::FlatBufferBuilder &_fbb, const OperatorCodeT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct OperatorT : public flatbuffers::NativeTable +{ + typedef Operator TableType; + uint32_t opcode_index = 0; + std::vector inputs{}; + std::vector outputs{}; + circle::BuiltinOptionsUnion builtin_options{}; + std::vector custom_options{}; + circle::CustomOptionsFormat custom_options_format = circle::CustomOptionsFormat_FLEXBUFFERS; + std::vector mutating_variable_inputs{}; + std::vector intermediates{}; +}; + +struct Operator FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef OperatorT NativeTableType; + typedef OperatorBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { - return builtin_options_type() == circle::BuiltinOptions_PadV2Options - ? static_cast(builtin_options()) - : nullptr; - } - const circle::GreaterOptions *builtin_options_as_GreaterOptions() const + VT_OPCODE_INDEX = 4, + VT_INPUTS = 6, + VT_OUTPUTS = 8, + VT_BUILTIN_OPTIONS_TYPE = 10, + VT_BUILTIN_OPTIONS = 12, + VT_CUSTOM_OPTIONS = 14, + VT_CUSTOM_OPTIONS_FORMAT = 16, + VT_MUTATING_VARIABLE_INPUTS = 18, + VT_INTERMEDIATES = 20 + }; + uint32_t opcode_index() const { return GetField(VT_OPCODE_INDEX, 0); } + const flatbuffers::Vector *inputs() const { - return builtin_options_type() == circle::BuiltinOptions_GreaterOptions - ? static_cast(builtin_options()) - : nullptr; + return GetPointer *>(VT_INPUTS); } - const circle::GreaterEqualOptions *builtin_options_as_GreaterEqualOptions() const + const flatbuffers::Vector *outputs() const { - return builtin_options_type() == circle::BuiltinOptions_GreaterEqualOptions - ? static_cast(builtin_options()) - : nullptr; + return GetPointer *>(VT_OUTPUTS); } - const circle::LessEqualOptions *builtin_options_as_LessEqualOptions() const + circle::BuiltinOptions builtin_options_type() const { - return builtin_options_type() == circle::BuiltinOptions_LessEqualOptions - ? static_cast(builtin_options()) - : nullptr; + return static_cast(GetField(VT_BUILTIN_OPTIONS_TYPE, 0)); } - const circle::SelectOptions *builtin_options_as_SelectOptions() const + const void *builtin_options() const { return GetPointer(VT_BUILTIN_OPTIONS); } + template const T *builtin_options_as() const; + const circle::Conv2DOptions *builtin_options_as_Conv2DOptions() const { - return builtin_options_type() == circle::BuiltinOptions_SelectOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_Conv2DOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::SliceOptions *builtin_options_as_SliceOptions() const + const circle::DepthwiseConv2DOptions *builtin_options_as_DepthwiseConv2DOptions() const { - return builtin_options_type() == circle::BuiltinOptions_SliceOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_DepthwiseConv2DOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::TransposeConvOptions *builtin_options_as_TransposeConvOptions() const + const circle::ConcatEmbeddingsOptions *builtin_options_as_ConcatEmbeddingsOptions() const { - return builtin_options_type() == circle::BuiltinOptions_TransposeConvOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ConcatEmbeddingsOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::SparseToDenseOptions *builtin_options_as_SparseToDenseOptions() const + const circle::LSHProjectionOptions *builtin_options_as_LSHProjectionOptions() const { - return builtin_options_type() == circle::BuiltinOptions_SparseToDenseOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LSHProjectionOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::TileOptions *builtin_options_as_TileOptions() const + const circle::Pool2DOptions *builtin_options_as_Pool2DOptions() const { - return builtin_options_type() == circle::BuiltinOptions_TileOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_Pool2DOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::ExpandDimsOptions *builtin_options_as_ExpandDimsOptions() const + const circle::SVDFOptions *builtin_options_as_SVDFOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ExpandDimsOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SVDFOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::EqualOptions *builtin_options_as_EqualOptions() const + const circle::RNNOptions *builtin_options_as_RNNOptions() const { - return builtin_options_type() == circle::BuiltinOptions_EqualOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_RNNOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::NotEqualOptions *builtin_options_as_NotEqualOptions() const + const circle::FullyConnectedOptions *builtin_options_as_FullyConnectedOptions() const { - return builtin_options_type() == circle::BuiltinOptions_NotEqualOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_FullyConnectedOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::ShapeOptions *builtin_options_as_ShapeOptions() const + const circle::SoftmaxOptions *builtin_options_as_SoftmaxOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ShapeOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SoftmaxOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::PowOptions *builtin_options_as_PowOptions() const + const circle::ConcatenationOptions *builtin_options_as_ConcatenationOptions() const { - return builtin_options_type() == circle::BuiltinOptions_PowOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ConcatenationOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::ArgMinOptions *builtin_options_as_ArgMinOptions() const + const circle::AddOptions *builtin_options_as_AddOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ArgMinOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_AddOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::FakeQuantOptions *builtin_options_as_FakeQuantOptions() const + const circle::L2NormOptions *builtin_options_as_L2NormOptions() const { - return builtin_options_type() == circle::BuiltinOptions_FakeQuantOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_L2NormOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::PackOptions *builtin_options_as_PackOptions() const + const circle::LocalResponseNormalizationOptions * + builtin_options_as_LocalResponseNormalizationOptions() const { - return builtin_options_type() == circle::BuiltinOptions_PackOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LocalResponseNormalizationOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::LogicalOrOptions *builtin_options_as_LogicalOrOptions() const + const circle::LSTMOptions *builtin_options_as_LSTMOptions() const { - return builtin_options_type() == circle::BuiltinOptions_LogicalOrOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LSTMOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::OneHotOptions *builtin_options_as_OneHotOptions() const + const circle::ResizeBilinearOptions *builtin_options_as_ResizeBilinearOptions() const { - return builtin_options_type() == circle::BuiltinOptions_OneHotOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ResizeBilinearOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::LogicalAndOptions *builtin_options_as_LogicalAndOptions() const + const circle::CallOptions *builtin_options_as_CallOptions() const { - return builtin_options_type() == circle::BuiltinOptions_LogicalAndOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_CallOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::LogicalNotOptions *builtin_options_as_LogicalNotOptions() const + const circle::ReshapeOptions *builtin_options_as_ReshapeOptions() const { - return builtin_options_type() == circle::BuiltinOptions_LogicalNotOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ReshapeOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::UnpackOptions *builtin_options_as_UnpackOptions() const + const circle::SkipGramOptions *builtin_options_as_SkipGramOptions() const { - return builtin_options_type() == circle::BuiltinOptions_UnpackOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SkipGramOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::FloorDivOptions *builtin_options_as_FloorDivOptions() const + const circle::SpaceToDepthOptions *builtin_options_as_SpaceToDepthOptions() const { - return builtin_options_type() == circle::BuiltinOptions_FloorDivOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SpaceToDepthOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::SquareOptions *builtin_options_as_SquareOptions() const + const circle::EmbeddingLookupSparseOptions * + builtin_options_as_EmbeddingLookupSparseOptions() const { - return builtin_options_type() == circle::BuiltinOptions_SquareOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_EmbeddingLookupSparseOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::ZerosLikeOptions *builtin_options_as_ZerosLikeOptions() const + const circle::MulOptions *builtin_options_as_MulOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ZerosLikeOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_MulOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::FillOptions *builtin_options_as_FillOptions() const + const circle::PadOptions *builtin_options_as_PadOptions() const { - return builtin_options_type() == circle::BuiltinOptions_FillOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_PadOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::BidirectionalSequenceLSTMOptions * - builtin_options_as_BidirectionalSequenceLSTMOptions() const + const circle::GatherOptions *builtin_options_as_GatherOptions() const { - return builtin_options_type() == circle::BuiltinOptions_BidirectionalSequenceLSTMOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_GatherOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::BidirectionalSequenceRNNOptions * - builtin_options_as_BidirectionalSequenceRNNOptions() const + const circle::BatchToSpaceNDOptions *builtin_options_as_BatchToSpaceNDOptions() const { - return builtin_options_type() == circle::BuiltinOptions_BidirectionalSequenceRNNOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_BatchToSpaceNDOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::UnidirectionalSequenceLSTMOptions * - builtin_options_as_UnidirectionalSequenceLSTMOptions() const + const circle::SpaceToBatchNDOptions *builtin_options_as_SpaceToBatchNDOptions() const { - return builtin_options_type() == circle::BuiltinOptions_UnidirectionalSequenceLSTMOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SpaceToBatchNDOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::FloorModOptions *builtin_options_as_FloorModOptions() const + const circle::TransposeOptions *builtin_options_as_TransposeOptions() const { - return builtin_options_type() == circle::BuiltinOptions_FloorModOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_TransposeOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::RangeOptions *builtin_options_as_RangeOptions() const + const circle::ReducerOptions *builtin_options_as_ReducerOptions() const { - return builtin_options_type() == circle::BuiltinOptions_RangeOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ReducerOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::ResizeNearestNeighborOptions * - builtin_options_as_ResizeNearestNeighborOptions() const + const circle::SubOptions *builtin_options_as_SubOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ResizeNearestNeighborOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SubOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::LeakyReluOptions *builtin_options_as_LeakyReluOptions() const + const circle::DivOptions *builtin_options_as_DivOptions() const { - return builtin_options_type() == circle::BuiltinOptions_LeakyReluOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_DivOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::SquaredDifferenceOptions *builtin_options_as_SquaredDifferenceOptions() const + const circle::SqueezeOptions *builtin_options_as_SqueezeOptions() const { - return builtin_options_type() == circle::BuiltinOptions_SquaredDifferenceOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SqueezeOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::MirrorPadOptions *builtin_options_as_MirrorPadOptions() const + const circle::SequenceRNNOptions *builtin_options_as_SequenceRNNOptions() const { - return builtin_options_type() == circle::BuiltinOptions_MirrorPadOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SequenceRNNOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::AbsOptions *builtin_options_as_AbsOptions() const + const circle::StridedSliceOptions *builtin_options_as_StridedSliceOptions() const { - return builtin_options_type() == circle::BuiltinOptions_AbsOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_StridedSliceOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::SplitVOptions *builtin_options_as_SplitVOptions() const + const circle::ExpOptions *builtin_options_as_ExpOptions() const { - return builtin_options_type() == circle::BuiltinOptions_SplitVOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ExpOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::UniqueOptions *builtin_options_as_UniqueOptions() const + const circle::TopKV2Options *builtin_options_as_TopKV2Options() const { - return builtin_options_type() == circle::BuiltinOptions_UniqueOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_TopKV2Options + ? static_cast(builtin_options()) : nullptr; } - const circle::ReverseV2Options *builtin_options_as_ReverseV2Options() const + const circle::SplitOptions *builtin_options_as_SplitOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ReverseV2Options - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SplitOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::AddNOptions *builtin_options_as_AddNOptions() const + const circle::LogSoftmaxOptions *builtin_options_as_LogSoftmaxOptions() const { - return builtin_options_type() == circle::BuiltinOptions_AddNOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LogSoftmaxOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::GatherNdOptions *builtin_options_as_GatherNdOptions() const + const circle::CastOptions *builtin_options_as_CastOptions() const { - return builtin_options_type() == circle::BuiltinOptions_GatherNdOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_CastOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::CosOptions *builtin_options_as_CosOptions() const + const circle::DequantizeOptions *builtin_options_as_DequantizeOptions() const { - return builtin_options_type() == circle::BuiltinOptions_CosOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_DequantizeOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::WhereOptions *builtin_options_as_WhereOptions() const + const circle::MaximumMinimumOptions *builtin_options_as_MaximumMinimumOptions() const { - return builtin_options_type() == circle::BuiltinOptions_WhereOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_MaximumMinimumOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::RankOptions *builtin_options_as_RankOptions() const + const circle::ArgMaxOptions *builtin_options_as_ArgMaxOptions() const { - return builtin_options_type() == circle::BuiltinOptions_RankOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ArgMaxOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::ReverseSequenceOptions *builtin_options_as_ReverseSequenceOptions() const + const circle::LessOptions *builtin_options_as_LessOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ReverseSequenceOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LessOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::MatrixDiagOptions *builtin_options_as_MatrixDiagOptions() const + const circle::NegOptions *builtin_options_as_NegOptions() const { - return builtin_options_type() == circle::BuiltinOptions_MatrixDiagOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_NegOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::QuantizeOptions *builtin_options_as_QuantizeOptions() const + const circle::PadV2Options *builtin_options_as_PadV2Options() const { - return builtin_options_type() == circle::BuiltinOptions_QuantizeOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_PadV2Options + ? static_cast(builtin_options()) : nullptr; } - const circle::MatrixSetDiagOptions *builtin_options_as_MatrixSetDiagOptions() const + const circle::GreaterOptions *builtin_options_as_GreaterOptions() const { - return builtin_options_type() == circle::BuiltinOptions_MatrixSetDiagOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_GreaterOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::HardSwishOptions *builtin_options_as_HardSwishOptions() const + const circle::GreaterEqualOptions *builtin_options_as_GreaterEqualOptions() const { - return builtin_options_type() == circle::BuiltinOptions_HardSwishOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_GreaterEqualOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::IfOptions *builtin_options_as_IfOptions() const + const circle::LessEqualOptions *builtin_options_as_LessEqualOptions() const { - return builtin_options_type() == circle::BuiltinOptions_IfOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LessEqualOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::WhileOptions *builtin_options_as_WhileOptions() const + const circle::SelectOptions *builtin_options_as_SelectOptions() const { - return builtin_options_type() == circle::BuiltinOptions_WhileOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SelectOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::DepthToSpaceOptions *builtin_options_as_DepthToSpaceOptions() const + const circle::SliceOptions *builtin_options_as_SliceOptions() const { - return builtin_options_type() == circle::BuiltinOptions_DepthToSpaceOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SliceOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::NonMaxSuppressionV4Options *builtin_options_as_NonMaxSuppressionV4Options() const + const circle::TransposeConvOptions *builtin_options_as_TransposeConvOptions() const { - return builtin_options_type() == circle::BuiltinOptions_NonMaxSuppressionV4Options - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_TransposeConvOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::NonMaxSuppressionV5Options *builtin_options_as_NonMaxSuppressionV5Options() const + const circle::SparseToDenseOptions *builtin_options_as_SparseToDenseOptions() const { - return builtin_options_type() == circle::BuiltinOptions_NonMaxSuppressionV5Options - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SparseToDenseOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::ScatterNdOptions *builtin_options_as_ScatterNdOptions() const + const circle::TileOptions *builtin_options_as_TileOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ScatterNdOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_TileOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::SelectV2Options *builtin_options_as_SelectV2Options() const + const circle::ExpandDimsOptions *builtin_options_as_ExpandDimsOptions() const { - return builtin_options_type() == circle::BuiltinOptions_SelectV2Options - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ExpandDimsOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::DensifyOptions *builtin_options_as_DensifyOptions() const + const circle::EqualOptions *builtin_options_as_EqualOptions() const { - return builtin_options_type() == circle::BuiltinOptions_DensifyOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_EqualOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::SegmentSumOptions *builtin_options_as_SegmentSumOptions() const + const circle::NotEqualOptions *builtin_options_as_NotEqualOptions() const { - return builtin_options_type() == circle::BuiltinOptions_SegmentSumOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_NotEqualOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::BatchMatMulOptions *builtin_options_as_BatchMatMulOptions() const + const circle::ShapeOptions *builtin_options_as_ShapeOptions() const { - return builtin_options_type() == circle::BuiltinOptions_BatchMatMulOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ShapeOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::CumsumOptions *builtin_options_as_CumsumOptions() const + const circle::PowOptions *builtin_options_as_PowOptions() const { - return builtin_options_type() == circle::BuiltinOptions_CumsumOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_PowOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::CallOnceOptions *builtin_options_as_CallOnceOptions() const + const circle::ArgMinOptions *builtin_options_as_ArgMinOptions() const { - return builtin_options_type() == circle::BuiltinOptions_CallOnceOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ArgMinOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::BroadcastToOptions *builtin_options_as_BroadcastToOptions() const + const circle::FakeQuantOptions *builtin_options_as_FakeQuantOptions() const { - return builtin_options_type() == circle::BuiltinOptions_BroadcastToOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_FakeQuantOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::Rfft2dOptions *builtin_options_as_Rfft2dOptions() const + const circle::PackOptions *builtin_options_as_PackOptions() const { - return builtin_options_type() == circle::BuiltinOptions_Rfft2dOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_PackOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::Conv3DOptions *builtin_options_as_Conv3DOptions() const + const circle::LogicalOrOptions *builtin_options_as_LogicalOrOptions() const { - return builtin_options_type() == circle::BuiltinOptions_Conv3DOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LogicalOrOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::HashtableOptions *builtin_options_as_HashtableOptions() const + const circle::OneHotOptions *builtin_options_as_OneHotOptions() const { - return builtin_options_type() == circle::BuiltinOptions_HashtableOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_OneHotOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::HashtableFindOptions *builtin_options_as_HashtableFindOptions() const + const circle::LogicalAndOptions *builtin_options_as_LogicalAndOptions() const { - return builtin_options_type() == circle::BuiltinOptions_HashtableFindOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LogicalAndOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::HashtableImportOptions *builtin_options_as_HashtableImportOptions() const + const circle::LogicalNotOptions *builtin_options_as_LogicalNotOptions() const { - return builtin_options_type() == circle::BuiltinOptions_HashtableImportOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_LogicalNotOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::HashtableSizeOptions *builtin_options_as_HashtableSizeOptions() const + const circle::UnpackOptions *builtin_options_as_UnpackOptions() const { - return builtin_options_type() == circle::BuiltinOptions_HashtableSizeOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_UnpackOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::VarHandleOptions *builtin_options_as_VarHandleOptions() const + const circle::FloorDivOptions *builtin_options_as_FloorDivOptions() const { - return builtin_options_type() == circle::BuiltinOptions_VarHandleOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_FloorDivOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::ReadVariableOptions *builtin_options_as_ReadVariableOptions() const + const circle::SquareOptions *builtin_options_as_SquareOptions() const { - return builtin_options_type() == circle::BuiltinOptions_ReadVariableOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_SquareOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::AssignVariableOptions *builtin_options_as_AssignVariableOptions() const + const circle::ZerosLikeOptions *builtin_options_as_ZerosLikeOptions() const { - return builtin_options_type() == circle::BuiltinOptions_AssignVariableOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_ZerosLikeOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::RandomOptions *builtin_options_as_RandomOptions() const + const circle::FillOptions *builtin_options_as_FillOptions() const { - return builtin_options_type() == circle::BuiltinOptions_RandomOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_FillOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::BCQGatherOptions *builtin_options_as_BCQGatherOptions() const + const circle::BidirectionalSequenceLSTMOptions * + builtin_options_as_BidirectionalSequenceLSTMOptions() const { - return builtin_options_type() == circle::BuiltinOptions_BCQGatherOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_BidirectionalSequenceLSTMOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::BCQFullyConnectedOptions *builtin_options_as_BCQFullyConnectedOptions() const + const circle::BidirectionalSequenceRNNOptions * + builtin_options_as_BidirectionalSequenceRNNOptions() const { - return builtin_options_type() == circle::BuiltinOptions_BCQFullyConnectedOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_BidirectionalSequenceRNNOptions + ? static_cast(builtin_options()) : nullptr; } - const circle::InstanceNormOptions *builtin_options_as_InstanceNormOptions() const + const circle::UnidirectionalSequenceLSTMOptions * + builtin_options_as_UnidirectionalSequenceLSTMOptions() const { - return builtin_options_type() == circle::BuiltinOptions_InstanceNormOptions - ? static_cast(builtin_options()) + return builtin_options_type() == circle::BuiltinOptions_UnidirectionalSequenceLSTMOptions + ? static_cast(builtin_options()) : nullptr; } - const flatbuffers::Vector *custom_options() const + const circle::FloorModOptions *builtin_options_as_FloorModOptions() const { - return GetPointer *>(VT_CUSTOM_OPTIONS); + return builtin_options_type() == circle::BuiltinOptions_FloorModOptions + ? static_cast(builtin_options()) + : nullptr; } - circle::CustomOptionsFormat custom_options_format() const + const circle::RangeOptions *builtin_options_as_RangeOptions() const { - return static_cast(GetField(VT_CUSTOM_OPTIONS_FORMAT, 0)); + return builtin_options_type() == circle::BuiltinOptions_RangeOptions + ? static_cast(builtin_options()) + : nullptr; } - const flatbuffers::Vector *mutating_variable_inputs() const + const circle::ResizeNearestNeighborOptions * + builtin_options_as_ResizeNearestNeighborOptions() const { - return GetPointer *>(VT_MUTATING_VARIABLE_INPUTS); + return builtin_options_type() == circle::BuiltinOptions_ResizeNearestNeighborOptions + ? static_cast(builtin_options()) + : nullptr; } - const flatbuffers::Vector *intermediates() const + const circle::LeakyReluOptions *builtin_options_as_LeakyReluOptions() const { - return GetPointer *>(VT_INTERMEDIATES); + return builtin_options_type() == circle::BuiltinOptions_LeakyReluOptions + ? static_cast(builtin_options()) + : nullptr; } - bool Verify(flatbuffers::Verifier &verifier) const + const circle::SquaredDifferenceOptions *builtin_options_as_SquaredDifferenceOptions() const { - return VerifyTableStart(verifier) && VerifyField(verifier, VT_OPCODE_INDEX) && - VerifyOffset(verifier, VT_INPUTS) && verifier.VerifyVector(inputs()) && - VerifyOffset(verifier, VT_OUTPUTS) && verifier.VerifyVector(outputs()) && - VerifyField(verifier, VT_BUILTIN_OPTIONS_TYPE) && - VerifyOffset(verifier, VT_BUILTIN_OPTIONS) && - VerifyBuiltinOptions(verifier, builtin_options(), builtin_options_type()) && - VerifyOffset(verifier, VT_CUSTOM_OPTIONS) && verifier.VerifyVector(custom_options()) && - VerifyField(verifier, VT_CUSTOM_OPTIONS_FORMAT) && - VerifyOffset(verifier, VT_MUTATING_VARIABLE_INPUTS) && - verifier.VerifyVector(mutating_variable_inputs()) && - VerifyOffset(verifier, VT_INTERMEDIATES) && verifier.VerifyVector(intermediates()) && - verifier.EndTable(); + return builtin_options_type() == circle::BuiltinOptions_SquaredDifferenceOptions + ? static_cast(builtin_options()) + : nullptr; } - OperatorT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(OperatorT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const OperatorT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); -}; - -template <> -inline const circle::Conv2DOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_Conv2DOptions(); -} - -template <> -inline const circle::DepthwiseConv2DOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_DepthwiseConv2DOptions(); -} - -template <> -inline const circle::ConcatEmbeddingsOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_ConcatEmbeddingsOptions(); -} - -template <> -inline const circle::LSHProjectionOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_LSHProjectionOptions(); -} - -template <> -inline const circle::Pool2DOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_Pool2DOptions(); -} - -template <> -inline const circle::SVDFOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_SVDFOptions(); -} - -template <> -inline const circle::RNNOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_RNNOptions(); -} - -template <> -inline const circle::FullyConnectedOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_FullyConnectedOptions(); -} - -template <> -inline const circle::SoftmaxOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_SoftmaxOptions(); -} - -template <> -inline const circle::ConcatenationOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_ConcatenationOptions(); -} - -template <> -inline const circle::AddOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_AddOptions(); -} - -template <> -inline const circle::L2NormOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_L2NormOptions(); -} - -template <> -inline const circle::LocalResponseNormalizationOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_LocalResponseNormalizationOptions(); -} - -template <> -inline const circle::LSTMOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_LSTMOptions(); -} - -template <> -inline const circle::ResizeBilinearOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_ResizeBilinearOptions(); -} - -template <> -inline const circle::CallOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_CallOptions(); -} - -template <> -inline const circle::ReshapeOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_ReshapeOptions(); -} - -template <> -inline const circle::SkipGramOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_SkipGramOptions(); -} - -template <> -inline const circle::SpaceToDepthOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_SpaceToDepthOptions(); -} - -template <> -inline const circle::EmbeddingLookupSparseOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_EmbeddingLookupSparseOptions(); -} - -template <> -inline const circle::MulOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_MulOptions(); -} - -template <> -inline const circle::PadOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_PadOptions(); -} - -template <> -inline const circle::GatherOptions *Operator::builtin_options_as() const -{ - return builtin_options_as_GatherOptions(); -} - -template <> -inline const circle::BatchToSpaceNDOptions * -Operator::builtin_options_as() const -{ + const circle::MirrorPadOptions *builtin_options_as_MirrorPadOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_MirrorPadOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::AbsOptions *builtin_options_as_AbsOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_AbsOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::SplitVOptions *builtin_options_as_SplitVOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_SplitVOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::UniqueOptions *builtin_options_as_UniqueOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_UniqueOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::ReverseV2Options *builtin_options_as_ReverseV2Options() const + { + return builtin_options_type() == circle::BuiltinOptions_ReverseV2Options + ? static_cast(builtin_options()) + : nullptr; + } + const circle::AddNOptions *builtin_options_as_AddNOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_AddNOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::GatherNdOptions *builtin_options_as_GatherNdOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_GatherNdOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::CosOptions *builtin_options_as_CosOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_CosOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::WhereOptions *builtin_options_as_WhereOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_WhereOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::RankOptions *builtin_options_as_RankOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_RankOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::ReverseSequenceOptions *builtin_options_as_ReverseSequenceOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_ReverseSequenceOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::MatrixDiagOptions *builtin_options_as_MatrixDiagOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_MatrixDiagOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::QuantizeOptions *builtin_options_as_QuantizeOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_QuantizeOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::MatrixSetDiagOptions *builtin_options_as_MatrixSetDiagOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_MatrixSetDiagOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::HardSwishOptions *builtin_options_as_HardSwishOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_HardSwishOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::IfOptions *builtin_options_as_IfOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_IfOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::WhileOptions *builtin_options_as_WhileOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_WhileOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::DepthToSpaceOptions *builtin_options_as_DepthToSpaceOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_DepthToSpaceOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::NonMaxSuppressionV4Options *builtin_options_as_NonMaxSuppressionV4Options() const + { + return builtin_options_type() == circle::BuiltinOptions_NonMaxSuppressionV4Options + ? static_cast(builtin_options()) + : nullptr; + } + const circle::NonMaxSuppressionV5Options *builtin_options_as_NonMaxSuppressionV5Options() const + { + return builtin_options_type() == circle::BuiltinOptions_NonMaxSuppressionV5Options + ? static_cast(builtin_options()) + : nullptr; + } + const circle::ScatterNdOptions *builtin_options_as_ScatterNdOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_ScatterNdOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::SelectV2Options *builtin_options_as_SelectV2Options() const + { + return builtin_options_type() == circle::BuiltinOptions_SelectV2Options + ? static_cast(builtin_options()) + : nullptr; + } + const circle::DensifyOptions *builtin_options_as_DensifyOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_DensifyOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::SegmentSumOptions *builtin_options_as_SegmentSumOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_SegmentSumOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::BatchMatMulOptions *builtin_options_as_BatchMatMulOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_BatchMatMulOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::CumsumOptions *builtin_options_as_CumsumOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_CumsumOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::CallOnceOptions *builtin_options_as_CallOnceOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_CallOnceOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::BroadcastToOptions *builtin_options_as_BroadcastToOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_BroadcastToOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::Rfft2dOptions *builtin_options_as_Rfft2dOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_Rfft2dOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::Conv3DOptions *builtin_options_as_Conv3DOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_Conv3DOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::HashtableOptions *builtin_options_as_HashtableOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_HashtableOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::HashtableFindOptions *builtin_options_as_HashtableFindOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_HashtableFindOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::HashtableImportOptions *builtin_options_as_HashtableImportOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_HashtableImportOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::HashtableSizeOptions *builtin_options_as_HashtableSizeOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_HashtableSizeOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::VarHandleOptions *builtin_options_as_VarHandleOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_VarHandleOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::ReadVariableOptions *builtin_options_as_ReadVariableOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_ReadVariableOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::AssignVariableOptions *builtin_options_as_AssignVariableOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_AssignVariableOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::RandomOptions *builtin_options_as_RandomOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_RandomOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::BucketizeOptions *builtin_options_as_BucketizeOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_BucketizeOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::GeluOptions *builtin_options_as_GeluOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_GeluOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::DynamicUpdateSliceOptions *builtin_options_as_DynamicUpdateSliceOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_DynamicUpdateSliceOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::UnsortedSegmentProdOptions *builtin_options_as_UnsortedSegmentProdOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_UnsortedSegmentProdOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::UnsortedSegmentMaxOptions *builtin_options_as_UnsortedSegmentMaxOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_UnsortedSegmentMaxOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::UnsortedSegmentMinOptions *builtin_options_as_UnsortedSegmentMinOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_UnsortedSegmentMinOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::UnsortedSegmentSumOptions *builtin_options_as_UnsortedSegmentSumOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_UnsortedSegmentSumOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::ATan2Options *builtin_options_as_ATan2Options() const + { + return builtin_options_type() == circle::BuiltinOptions_ATan2Options + ? static_cast(builtin_options()) + : nullptr; + } + const circle::SignOptions *builtin_options_as_SignOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_SignOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::BitcastOptions *builtin_options_as_BitcastOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_BitcastOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::BitwiseXorOptions *builtin_options_as_BitwiseXorOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_BitwiseXorOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::RightShiftOptions *builtin_options_as_RightShiftOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_RightShiftOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::BCQGatherOptions *builtin_options_as_BCQGatherOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_BCQGatherOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::BCQFullyConnectedOptions *builtin_options_as_BCQFullyConnectedOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_BCQFullyConnectedOptions + ? static_cast(builtin_options()) + : nullptr; + } + const circle::InstanceNormOptions *builtin_options_as_InstanceNormOptions() const + { + return builtin_options_type() == circle::BuiltinOptions_InstanceNormOptions + ? static_cast(builtin_options()) + : nullptr; + } + const flatbuffers::Vector *custom_options() const + { + return GetPointer *>(VT_CUSTOM_OPTIONS); + } + circle::CustomOptionsFormat custom_options_format() const + { + return static_cast(GetField(VT_CUSTOM_OPTIONS_FORMAT, 0)); + } + const flatbuffers::Vector *mutating_variable_inputs() const + { + return GetPointer *>(VT_MUTATING_VARIABLE_INPUTS); + } + const flatbuffers::Vector *intermediates() const + { + return GetPointer *>(VT_INTERMEDIATES); + } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyField(verifier, VT_OPCODE_INDEX) && + VerifyOffset(verifier, VT_INPUTS) && verifier.VerifyVector(inputs()) && + VerifyOffset(verifier, VT_OUTPUTS) && verifier.VerifyVector(outputs()) && + VerifyField(verifier, VT_BUILTIN_OPTIONS_TYPE) && + VerifyOffset(verifier, VT_BUILTIN_OPTIONS) && + VerifyBuiltinOptions(verifier, builtin_options(), builtin_options_type()) && + VerifyOffset(verifier, VT_CUSTOM_OPTIONS) && verifier.VerifyVector(custom_options()) && + VerifyField(verifier, VT_CUSTOM_OPTIONS_FORMAT) && + VerifyOffset(verifier, VT_MUTATING_VARIABLE_INPUTS) && + verifier.VerifyVector(mutating_variable_inputs()) && + VerifyOffset(verifier, VT_INTERMEDIATES) && verifier.VerifyVector(intermediates()) && + verifier.EndTable(); + } + OperatorT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(OperatorT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const OperatorT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +template <> +inline const circle::Conv2DOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_Conv2DOptions(); +} + +template <> +inline const circle::DepthwiseConv2DOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_DepthwiseConv2DOptions(); +} + +template <> +inline const circle::ConcatEmbeddingsOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_ConcatEmbeddingsOptions(); +} + +template <> +inline const circle::LSHProjectionOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_LSHProjectionOptions(); +} + +template <> +inline const circle::Pool2DOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_Pool2DOptions(); +} + +template <> +inline const circle::SVDFOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_SVDFOptions(); +} + +template <> +inline const circle::RNNOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_RNNOptions(); +} + +template <> +inline const circle::FullyConnectedOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_FullyConnectedOptions(); +} + +template <> +inline const circle::SoftmaxOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_SoftmaxOptions(); +} + +template <> +inline const circle::ConcatenationOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_ConcatenationOptions(); +} + +template <> +inline const circle::AddOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_AddOptions(); +} + +template <> +inline const circle::L2NormOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_L2NormOptions(); +} + +template <> +inline const circle::LocalResponseNormalizationOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_LocalResponseNormalizationOptions(); +} + +template <> +inline const circle::LSTMOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_LSTMOptions(); +} + +template <> +inline const circle::ResizeBilinearOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_ResizeBilinearOptions(); +} + +template <> +inline const circle::CallOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_CallOptions(); +} + +template <> +inline const circle::ReshapeOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_ReshapeOptions(); +} + +template <> +inline const circle::SkipGramOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_SkipGramOptions(); +} + +template <> +inline const circle::SpaceToDepthOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_SpaceToDepthOptions(); +} + +template <> +inline const circle::EmbeddingLookupSparseOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_EmbeddingLookupSparseOptions(); +} + +template <> +inline const circle::MulOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_MulOptions(); +} + +template <> +inline const circle::PadOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_PadOptions(); +} + +template <> +inline const circle::GatherOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_GatherOptions(); +} + +template <> +inline const circle::BatchToSpaceNDOptions * +Operator::builtin_options_as() const +{ return builtin_options_as_BatchToSpaceNDOptions(); } @@ -14030,1183 +15193,2161 @@ Operator::builtin_options_as() const return builtin_options_as_MatrixDiagOptions(); } -template <> -inline const circle::QuantizeOptions *Operator::builtin_options_as() const +template <> +inline const circle::QuantizeOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_QuantizeOptions(); +} + +template <> +inline const circle::MatrixSetDiagOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_MatrixSetDiagOptions(); +} + +template <> +inline const circle::HardSwishOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_HardSwishOptions(); +} + +template <> inline const circle::IfOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_IfOptions(); +} + +template <> +inline const circle::WhileOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_WhileOptions(); +} + +template <> +inline const circle::DepthToSpaceOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_DepthToSpaceOptions(); +} + +template <> +inline const circle::NonMaxSuppressionV4Options * +Operator::builtin_options_as() const +{ + return builtin_options_as_NonMaxSuppressionV4Options(); +} + +template <> +inline const circle::NonMaxSuppressionV5Options * +Operator::builtin_options_as() const +{ + return builtin_options_as_NonMaxSuppressionV5Options(); +} + +template <> +inline const circle::ScatterNdOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_ScatterNdOptions(); +} + +template <> +inline const circle::SelectV2Options *Operator::builtin_options_as() const +{ + return builtin_options_as_SelectV2Options(); +} + +template <> +inline const circle::DensifyOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_DensifyOptions(); +} + +template <> +inline const circle::SegmentSumOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_SegmentSumOptions(); +} + +template <> +inline const circle::BatchMatMulOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_BatchMatMulOptions(); +} + +template <> +inline const circle::CumsumOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_CumsumOptions(); +} + +template <> +inline const circle::CallOnceOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_CallOnceOptions(); +} + +template <> +inline const circle::BroadcastToOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_BroadcastToOptions(); +} + +template <> +inline const circle::Rfft2dOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_Rfft2dOptions(); +} + +template <> +inline const circle::Conv3DOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_Conv3DOptions(); +} + +template <> +inline const circle::HashtableOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_HashtableOptions(); +} + +template <> +inline const circle::HashtableFindOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_HashtableFindOptions(); +} + +template <> +inline const circle::HashtableImportOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_HashtableImportOptions(); +} + +template <> +inline const circle::HashtableSizeOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_HashtableSizeOptions(); +} + +template <> +inline const circle::VarHandleOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_VarHandleOptions(); +} + +template <> +inline const circle::ReadVariableOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_ReadVariableOptions(); +} + +template <> +inline const circle::AssignVariableOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_AssignVariableOptions(); +} + +template <> +inline const circle::RandomOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_RandomOptions(); +} + +template <> +inline const circle::BucketizeOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_BucketizeOptions(); +} + +template <> +inline const circle::GeluOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_GeluOptions(); +} + +template <> +inline const circle::DynamicUpdateSliceOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_DynamicUpdateSliceOptions(); +} + +template <> +inline const circle::UnsortedSegmentProdOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_UnsortedSegmentProdOptions(); +} + +template <> +inline const circle::UnsortedSegmentMaxOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_UnsortedSegmentMaxOptions(); +} + +template <> +inline const circle::UnsortedSegmentMinOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_UnsortedSegmentMinOptions(); +} + +template <> +inline const circle::UnsortedSegmentSumOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_UnsortedSegmentSumOptions(); +} + +template <> +inline const circle::ATan2Options *Operator::builtin_options_as() const +{ + return builtin_options_as_ATan2Options(); +} + +template <> +inline const circle::SignOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_SignOptions(); +} + +template <> +inline const circle::BitcastOptions *Operator::builtin_options_as() const +{ + return builtin_options_as_BitcastOptions(); +} + +template <> +inline const circle::BitwiseXorOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_BitwiseXorOptions(); +} + +template <> +inline const circle::RightShiftOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_RightShiftOptions(); +} + +template <> +inline const circle::BCQGatherOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_BCQGatherOptions(); +} + +template <> +inline const circle::BCQFullyConnectedOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_BCQFullyConnectedOptions(); +} + +template <> +inline const circle::InstanceNormOptions * +Operator::builtin_options_as() const +{ + return builtin_options_as_InstanceNormOptions(); +} + +struct OperatorBuilder +{ + typedef Operator Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_opcode_index(uint32_t opcode_index) + { + fbb_.AddElement(Operator::VT_OPCODE_INDEX, opcode_index, 0); + } + void add_inputs(flatbuffers::Offset> inputs) + { + fbb_.AddOffset(Operator::VT_INPUTS, inputs); + } + void add_outputs(flatbuffers::Offset> outputs) + { + fbb_.AddOffset(Operator::VT_OUTPUTS, outputs); + } + void add_builtin_options_type(circle::BuiltinOptions builtin_options_type) + { + fbb_.AddElement(Operator::VT_BUILTIN_OPTIONS_TYPE, + static_cast(builtin_options_type), 0); + } + void add_builtin_options(flatbuffers::Offset builtin_options) + { + fbb_.AddOffset(Operator::VT_BUILTIN_OPTIONS, builtin_options); + } + void add_custom_options(flatbuffers::Offset> custom_options) + { + fbb_.AddOffset(Operator::VT_CUSTOM_OPTIONS, custom_options); + } + void add_custom_options_format(circle::CustomOptionsFormat custom_options_format) + { + fbb_.AddElement(Operator::VT_CUSTOM_OPTIONS_FORMAT, + static_cast(custom_options_format), 0); + } + void add_mutating_variable_inputs( + flatbuffers::Offset> mutating_variable_inputs) + { + fbb_.AddOffset(Operator::VT_MUTATING_VARIABLE_INPUTS, mutating_variable_inputs); + } + void add_intermediates(flatbuffers::Offset> intermediates) + { + fbb_.AddOffset(Operator::VT_INTERMEDIATES, intermediates); + } + explicit OperatorBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + { + start_ = fbb_.StartTable(); + } + flatbuffers::Offset Finish() + { + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; + } +}; + +inline flatbuffers::Offset CreateOperator( + flatbuffers::FlatBufferBuilder &_fbb, uint32_t opcode_index = 0, + flatbuffers::Offset> inputs = 0, + flatbuffers::Offset> outputs = 0, + circle::BuiltinOptions builtin_options_type = circle::BuiltinOptions_NONE, + flatbuffers::Offset builtin_options = 0, + flatbuffers::Offset> custom_options = 0, + circle::CustomOptionsFormat custom_options_format = circle::CustomOptionsFormat_FLEXBUFFERS, + flatbuffers::Offset> mutating_variable_inputs = 0, + flatbuffers::Offset> intermediates = 0) { - return builtin_options_as_QuantizeOptions(); + OperatorBuilder builder_(_fbb); + builder_.add_intermediates(intermediates); + builder_.add_mutating_variable_inputs(mutating_variable_inputs); + builder_.add_custom_options(custom_options); + builder_.add_builtin_options(builtin_options); + builder_.add_outputs(outputs); + builder_.add_inputs(inputs); + builder_.add_opcode_index(opcode_index); + builder_.add_custom_options_format(custom_options_format); + builder_.add_builtin_options_type(builtin_options_type); + return builder_.Finish(); } -template <> -inline const circle::MatrixSetDiagOptions * -Operator::builtin_options_as() const +inline flatbuffers::Offset CreateOperatorDirect( + flatbuffers::FlatBufferBuilder &_fbb, uint32_t opcode_index = 0, + const std::vector *inputs = nullptr, const std::vector *outputs = nullptr, + circle::BuiltinOptions builtin_options_type = circle::BuiltinOptions_NONE, + flatbuffers::Offset builtin_options = 0, + const std::vector *custom_options = nullptr, + circle::CustomOptionsFormat custom_options_format = circle::CustomOptionsFormat_FLEXBUFFERS, + const std::vector *mutating_variable_inputs = nullptr, + const std::vector *intermediates = nullptr) { - return builtin_options_as_MatrixSetDiagOptions(); + auto inputs__ = inputs ? _fbb.CreateVector(*inputs) : 0; + auto outputs__ = outputs ? _fbb.CreateVector(*outputs) : 0; + auto custom_options__ = custom_options ? _fbb.CreateVector(*custom_options) : 0; + auto mutating_variable_inputs__ = + mutating_variable_inputs ? _fbb.CreateVector(*mutating_variable_inputs) : 0; + auto intermediates__ = intermediates ? _fbb.CreateVector(*intermediates) : 0; + return circle::CreateOperator(_fbb, opcode_index, inputs__, outputs__, builtin_options_type, + builtin_options, custom_options__, custom_options_format, + mutating_variable_inputs__, intermediates__); } -template <> -inline const circle::HardSwishOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_HardSwishOptions(); -} +flatbuffers::Offset +CreateOperator(flatbuffers::FlatBufferBuilder &_fbb, const OperatorT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); -template <> inline const circle::IfOptions *Operator::builtin_options_as() const +struct SubGraphT : public flatbuffers::NativeTable { - return builtin_options_as_IfOptions(); -} + typedef SubGraph TableType; + std::vector> tensors{}; + std::vector inputs{}; + std::vector outputs{}; + std::vector> operators{}; + std::string name{}; + circle::DataFormat data_format = circle::DataFormat_CHANNELS_LAST; +}; -template <> -inline const circle::WhileOptions *Operator::builtin_options_as() const +struct SubGraph FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - return builtin_options_as_WhileOptions(); -} + typedef SubGraphT NativeTableType; + typedef SubGraphBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + { + VT_TENSORS = 4, + VT_INPUTS = 6, + VT_OUTPUTS = 8, + VT_OPERATORS = 10, + VT_NAME = 12, + VT_DATA_FORMAT = 14 + }; + const flatbuffers::Vector> *tensors() const + { + return GetPointer> *>(VT_TENSORS); + } + const flatbuffers::Vector *inputs() const + { + return GetPointer *>(VT_INPUTS); + } + const flatbuffers::Vector *outputs() const + { + return GetPointer *>(VT_OUTPUTS); + } + const flatbuffers::Vector> *operators() const + { + return GetPointer> *>( + VT_OPERATORS); + } + const flatbuffers::String *name() const + { + return GetPointer(VT_NAME); + } + circle::DataFormat data_format() const + { + return static_cast(GetField(VT_DATA_FORMAT, 0)); + } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_TENSORS) && + verifier.VerifyVector(tensors()) && verifier.VerifyVectorOfTables(tensors()) && + VerifyOffset(verifier, VT_INPUTS) && verifier.VerifyVector(inputs()) && + VerifyOffset(verifier, VT_OUTPUTS) && verifier.VerifyVector(outputs()) && + VerifyOffset(verifier, VT_OPERATORS) && verifier.VerifyVector(operators()) && + verifier.VerifyVectorOfTables(operators()) && VerifyOffset(verifier, VT_NAME) && + verifier.VerifyString(name()) && VerifyField(verifier, VT_DATA_FORMAT) && + verifier.EndTable(); + } + SubGraphT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(SubGraphT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; -template <> -inline const circle::DepthToSpaceOptions * -Operator::builtin_options_as() const +struct SubGraphBuilder { - return builtin_options_as_DepthToSpaceOptions(); -} + typedef SubGraph Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void + add_tensors(flatbuffers::Offset>> tensors) + { + fbb_.AddOffset(SubGraph::VT_TENSORS, tensors); + } + void add_inputs(flatbuffers::Offset> inputs) + { + fbb_.AddOffset(SubGraph::VT_INPUTS, inputs); + } + void add_outputs(flatbuffers::Offset> outputs) + { + fbb_.AddOffset(SubGraph::VT_OUTPUTS, outputs); + } + void add_operators( + flatbuffers::Offset>> operators) + { + fbb_.AddOffset(SubGraph::VT_OPERATORS, operators); + } + void add_name(flatbuffers::Offset name) + { + fbb_.AddOffset(SubGraph::VT_NAME, name); + } + void add_data_format(circle::DataFormat data_format) + { + fbb_.AddElement(SubGraph::VT_DATA_FORMAT, static_cast(data_format), 0); + } + explicit SubGraphBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + { + start_ = fbb_.StartTable(); + } + flatbuffers::Offset Finish() + { + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; + } +}; -template <> -inline const circle::NonMaxSuppressionV4Options * -Operator::builtin_options_as() const +inline flatbuffers::Offset CreateSubGraph( + flatbuffers::FlatBufferBuilder &_fbb, + flatbuffers::Offset>> tensors = 0, + flatbuffers::Offset> inputs = 0, + flatbuffers::Offset> outputs = 0, + flatbuffers::Offset>> operators = 0, + flatbuffers::Offset name = 0, + circle::DataFormat data_format = circle::DataFormat_CHANNELS_LAST) { - return builtin_options_as_NonMaxSuppressionV4Options(); + SubGraphBuilder builder_(_fbb); + builder_.add_name(name); + builder_.add_operators(operators); + builder_.add_outputs(outputs); + builder_.add_inputs(inputs); + builder_.add_tensors(tensors); + builder_.add_data_format(data_format); + return builder_.Finish(); } -template <> -inline const circle::NonMaxSuppressionV5Options * -Operator::builtin_options_as() const +inline flatbuffers::Offset CreateSubGraphDirect( + flatbuffers::FlatBufferBuilder &_fbb, + const std::vector> *tensors = nullptr, + const std::vector *inputs = nullptr, const std::vector *outputs = nullptr, + const std::vector> *operators = nullptr, + const char *name = nullptr, circle::DataFormat data_format = circle::DataFormat_CHANNELS_LAST) { - return builtin_options_as_NonMaxSuppressionV5Options(); + auto tensors__ = tensors ? _fbb.CreateVector>(*tensors) : 0; + auto inputs__ = inputs ? _fbb.CreateVector(*inputs) : 0; + auto outputs__ = outputs ? _fbb.CreateVector(*outputs) : 0; + auto operators__ = + operators ? _fbb.CreateVector>(*operators) : 0; + auto name__ = name ? _fbb.CreateString(name) : 0; + return circle::CreateSubGraph(_fbb, tensors__, inputs__, outputs__, operators__, name__, + data_format); } -template <> -inline const circle::ScatterNdOptions * -Operator::builtin_options_as() const -{ - return builtin_options_as_ScatterNdOptions(); -} +flatbuffers::Offset +CreateSubGraph(flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); -template <> -inline const circle::SelectV2Options *Operator::builtin_options_as() const +struct BufferT : public flatbuffers::NativeTable { - return builtin_options_as_SelectV2Options(); -} + typedef Buffer TableType; + std::vector data{}; +}; -template <> -inline const circle::DensifyOptions *Operator::builtin_options_as() const +struct Buffer FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - return builtin_options_as_DensifyOptions(); -} + typedef BufferT NativeTableType; + typedef BufferBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + { + VT_DATA = 4 + }; + const flatbuffers::Vector *data() const + { + return GetPointer *>(VT_DATA); + } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_DATA) && + verifier.VerifyVector(data()) && verifier.EndTable(); + } + BufferT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(BufferT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const BufferT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; -template <> -inline const circle::SegmentSumOptions * -Operator::builtin_options_as() const +struct BufferBuilder { - return builtin_options_as_SegmentSumOptions(); -} + typedef Buffer Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_data(flatbuffers::Offset> data) + { + fbb_.AddOffset(Buffer::VT_DATA, data); + } + explicit BufferBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + { + start_ = fbb_.StartTable(); + } + flatbuffers::Offset Finish() + { + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; + } +}; -template <> -inline const circle::BatchMatMulOptions * -Operator::builtin_options_as() const +inline flatbuffers::Offset +CreateBuffer(flatbuffers::FlatBufferBuilder &_fbb, + flatbuffers::Offset> data = 0) { - return builtin_options_as_BatchMatMulOptions(); + BufferBuilder builder_(_fbb); + builder_.add_data(data); + return builder_.Finish(); } -template <> -inline const circle::CumsumOptions *Operator::builtin_options_as() const +inline flatbuffers::Offset CreateBufferDirect(flatbuffers::FlatBufferBuilder &_fbb, + const std::vector *data = nullptr) { - return builtin_options_as_CumsumOptions(); + if (data) + { + _fbb.ForceVectorAlignment(data->size(), sizeof(uint8_t), 16); + } + auto data__ = data ? _fbb.CreateVector(*data) : 0; + return circle::CreateBuffer(_fbb, data__); } -template <> -inline const circle::CallOnceOptions *Operator::builtin_options_as() const +flatbuffers::Offset +CreateBuffer(flatbuffers::FlatBufferBuilder &_fbb, const BufferT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct MetadataT : public flatbuffers::NativeTable { - return builtin_options_as_CallOnceOptions(); -} + typedef Metadata TableType; + std::string name{}; + uint32_t buffer = 0; +}; -template <> -inline const circle::BroadcastToOptions * -Operator::builtin_options_as() const +struct Metadata FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - return builtin_options_as_BroadcastToOptions(); -} + typedef MetadataT NativeTableType; + typedef MetadataBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + { + VT_NAME = 4, + VT_BUFFER = 6 + }; + const flatbuffers::String *name() const + { + return GetPointer(VT_NAME); + } + uint32_t buffer() const { return GetField(VT_BUFFER, 0); } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NAME) && + verifier.VerifyString(name()) && VerifyField(verifier, VT_BUFFER) && + verifier.EndTable(); + } + MetadataT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(MetadataT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const MetadataT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; -template <> -inline const circle::Rfft2dOptions *Operator::builtin_options_as() const +struct MetadataBuilder { - return builtin_options_as_Rfft2dOptions(); -} + typedef Metadata Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_name(flatbuffers::Offset name) + { + fbb_.AddOffset(Metadata::VT_NAME, name); + } + void add_buffer(uint32_t buffer) { fbb_.AddElement(Metadata::VT_BUFFER, buffer, 0); } + explicit MetadataBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + { + start_ = fbb_.StartTable(); + } + flatbuffers::Offset Finish() + { + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; + } +}; -template <> -inline const circle::Conv3DOptions *Operator::builtin_options_as() const +inline flatbuffers::Offset +CreateMetadata(flatbuffers::FlatBufferBuilder &_fbb, + flatbuffers::Offset name = 0, uint32_t buffer = 0) { - return builtin_options_as_Conv3DOptions(); + MetadataBuilder builder_(_fbb); + builder_.add_buffer(buffer); + builder_.add_name(name); + return builder_.Finish(); } -template <> -inline const circle::HashtableOptions * -Operator::builtin_options_as() const +inline flatbuffers::Offset CreateMetadataDirect(flatbuffers::FlatBufferBuilder &_fbb, + const char *name = nullptr, + uint32_t buffer = 0) { - return builtin_options_as_HashtableOptions(); + auto name__ = name ? _fbb.CreateString(name) : 0; + return circle::CreateMetadata(_fbb, name__, buffer); } -template <> -inline const circle::HashtableFindOptions * -Operator::builtin_options_as() const +flatbuffers::Offset +CreateMetadata(flatbuffers::FlatBufferBuilder &_fbb, const MetadataT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct TensorMapT : public flatbuffers::NativeTable { - return builtin_options_as_HashtableFindOptions(); -} + typedef TensorMap TableType; + std::string name{}; + uint32_t tensor_index = 0; +}; -template <> -inline const circle::HashtableImportOptions * -Operator::builtin_options_as() const +struct TensorMap FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - return builtin_options_as_HashtableImportOptions(); -} + typedef TensorMapT NativeTableType; + typedef TensorMapBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + { + VT_NAME = 4, + VT_TENSOR_INDEX = 6 + }; + const flatbuffers::String *name() const + { + return GetPointer(VT_NAME); + } + uint32_t tensor_index() const { return GetField(VT_TENSOR_INDEX, 0); } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NAME) && + verifier.VerifyString(name()) && VerifyField(verifier, VT_TENSOR_INDEX) && + verifier.EndTable(); + } + TensorMapT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(TensorMapT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const TensorMapT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; -template <> -inline const circle::HashtableSizeOptions * -Operator::builtin_options_as() const +struct TensorMapBuilder { - return builtin_options_as_HashtableSizeOptions(); -} + typedef TensorMap Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_name(flatbuffers::Offset name) + { + fbb_.AddOffset(TensorMap::VT_NAME, name); + } + void add_tensor_index(uint32_t tensor_index) + { + fbb_.AddElement(TensorMap::VT_TENSOR_INDEX, tensor_index, 0); + } + explicit TensorMapBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + { + start_ = fbb_.StartTable(); + } + flatbuffers::Offset Finish() + { + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; + } +}; -template <> -inline const circle::VarHandleOptions * -Operator::builtin_options_as() const +inline flatbuffers::Offset +CreateTensorMap(flatbuffers::FlatBufferBuilder &_fbb, + flatbuffers::Offset name = 0, uint32_t tensor_index = 0) { - return builtin_options_as_VarHandleOptions(); + TensorMapBuilder builder_(_fbb); + builder_.add_tensor_index(tensor_index); + builder_.add_name(name); + return builder_.Finish(); } -template <> -inline const circle::ReadVariableOptions * -Operator::builtin_options_as() const +inline flatbuffers::Offset CreateTensorMapDirect(flatbuffers::FlatBufferBuilder &_fbb, + const char *name = nullptr, + uint32_t tensor_index = 0) { - return builtin_options_as_ReadVariableOptions(); + auto name__ = name ? _fbb.CreateString(name) : 0; + return circle::CreateTensorMap(_fbb, name__, tensor_index); } -template <> -inline const circle::AssignVariableOptions * -Operator::builtin_options_as() const +flatbuffers::Offset +CreateTensorMap(flatbuffers::FlatBufferBuilder &_fbb, const TensorMapT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct SignatureDefT : public flatbuffers::NativeTable { - return builtin_options_as_AssignVariableOptions(); -} + typedef SignatureDef TableType; + std::vector> inputs{}; + std::vector> outputs{}; + std::string signature_key{}; + uint32_t subgraph_index = 0; +}; -template <> -inline const circle::RandomOptions *Operator::builtin_options_as() const +struct SignatureDef FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { - return builtin_options_as_RandomOptions(); -} + typedef SignatureDefT NativeTableType; + typedef SignatureDefBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + { + VT_INPUTS = 4, + VT_OUTPUTS = 6, + VT_SIGNATURE_KEY = 8, + VT_SUBGRAPH_INDEX = 12 + }; + const flatbuffers::Vector> *inputs() const + { + return GetPointer> *>( + VT_INPUTS); + } + const flatbuffers::Vector> *outputs() const + { + return GetPointer> *>( + VT_OUTPUTS); + } + const flatbuffers::String *signature_key() const + { + return GetPointer(VT_SIGNATURE_KEY); + } + uint32_t subgraph_index() const { return GetField(VT_SUBGRAPH_INDEX, 0); } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_INPUTS) && + verifier.VerifyVector(inputs()) && verifier.VerifyVectorOfTables(inputs()) && + VerifyOffset(verifier, VT_OUTPUTS) && verifier.VerifyVector(outputs()) && + verifier.VerifyVectorOfTables(outputs()) && VerifyOffset(verifier, VT_SIGNATURE_KEY) && + verifier.VerifyString(signature_key()) && + VerifyField(verifier, VT_SUBGRAPH_INDEX) && verifier.EndTable(); + } + SignatureDefT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(SignatureDefT *_o, + const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const SignatureDefT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; -template <> -inline const circle::BCQGatherOptions * -Operator::builtin_options_as() const +struct SignatureDefBuilder { - return builtin_options_as_BCQGatherOptions(); -} + typedef SignatureDef Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_inputs( + flatbuffers::Offset>> inputs) + { + fbb_.AddOffset(SignatureDef::VT_INPUTS, inputs); + } + void add_outputs( + flatbuffers::Offset>> outputs) + { + fbb_.AddOffset(SignatureDef::VT_OUTPUTS, outputs); + } + void add_signature_key(flatbuffers::Offset signature_key) + { + fbb_.AddOffset(SignatureDef::VT_SIGNATURE_KEY, signature_key); + } + void add_subgraph_index(uint32_t subgraph_index) + { + fbb_.AddElement(SignatureDef::VT_SUBGRAPH_INDEX, subgraph_index, 0); + } + explicit SignatureDefBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + { + start_ = fbb_.StartTable(); + } + flatbuffers::Offset Finish() + { + const auto end = fbb_.EndTable(start_); + auto o = flatbuffers::Offset(end); + return o; + } +}; -template <> -inline const circle::BCQFullyConnectedOptions * -Operator::builtin_options_as() const +inline flatbuffers::Offset CreateSignatureDef( + flatbuffers::FlatBufferBuilder &_fbb, + flatbuffers::Offset>> inputs = 0, + flatbuffers::Offset>> outputs = 0, + flatbuffers::Offset signature_key = 0, uint32_t subgraph_index = 0) { - return builtin_options_as_BCQFullyConnectedOptions(); + SignatureDefBuilder builder_(_fbb); + builder_.add_subgraph_index(subgraph_index); + builder_.add_signature_key(signature_key); + builder_.add_outputs(outputs); + builder_.add_inputs(inputs); + return builder_.Finish(); } -template <> -inline const circle::InstanceNormOptions * -Operator::builtin_options_as() const +inline flatbuffers::Offset CreateSignatureDefDirect( + flatbuffers::FlatBufferBuilder &_fbb, + const std::vector> *inputs = nullptr, + const std::vector> *outputs = nullptr, + const char *signature_key = nullptr, uint32_t subgraph_index = 0) { - return builtin_options_as_InstanceNormOptions(); + auto inputs__ = inputs ? _fbb.CreateVector>(*inputs) : 0; + auto outputs__ = + outputs ? _fbb.CreateVector>(*outputs) : 0; + auto signature_key__ = signature_key ? _fbb.CreateString(signature_key) : 0; + return circle::CreateSignatureDef(_fbb, inputs__, outputs__, signature_key__, subgraph_index); } -struct OperatorBuilder +flatbuffers::Offset +CreateSignatureDef(flatbuffers::FlatBufferBuilder &_fbb, const SignatureDefT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); + +struct ModelT : public flatbuffers::NativeTable { - typedef Operator Table; - flatbuffers::FlatBufferBuilder &fbb_; - flatbuffers::uoffset_t start_; - void add_opcode_index(uint32_t opcode_index) + typedef Model TableType; + uint32_t version = 0; + std::vector> operator_codes{}; + std::vector> subgraphs{}; + std::string description{}; + std::vector> buffers{}; + std::vector metadata_buffer{}; + std::vector> metadata{}; + std::vector> signature_defs{}; +}; + +struct Model FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +{ + typedef ModelT NativeTableType; + typedef ModelBuilder Builder; + enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { - fbb_.AddElement(Operator::VT_OPCODE_INDEX, opcode_index, 0); + VT_VERSION = 4, + VT_OPERATOR_CODES = 6, + VT_SUBGRAPHS = 8, + VT_DESCRIPTION = 10, + VT_BUFFERS = 12, + VT_METADATA_BUFFER = 14, + VT_METADATA = 16, + VT_SIGNATURE_DEFS = 18 + }; + uint32_t version() const { return GetField(VT_VERSION, 0); } + const flatbuffers::Vector> *operator_codes() const + { + return GetPointer> *>( + VT_OPERATOR_CODES); } - void add_inputs(flatbuffers::Offset> inputs) + const flatbuffers::Vector> *subgraphs() const { - fbb_.AddOffset(Operator::VT_INPUTS, inputs); + return GetPointer> *>( + VT_SUBGRAPHS); } - void add_outputs(flatbuffers::Offset> outputs) + const flatbuffers::String *description() const { - fbb_.AddOffset(Operator::VT_OUTPUTS, outputs); + return GetPointer(VT_DESCRIPTION); } - void add_builtin_options_type(circle::BuiltinOptions builtin_options_type) + const flatbuffers::Vector> *buffers() const { - fbb_.AddElement(Operator::VT_BUILTIN_OPTIONS_TYPE, - static_cast(builtin_options_type), 0); + return GetPointer> *>(VT_BUFFERS); } - void add_builtin_options(flatbuffers::Offset builtin_options) + const flatbuffers::Vector *metadata_buffer() const { - fbb_.AddOffset(Operator::VT_BUILTIN_OPTIONS, builtin_options); + return GetPointer *>(VT_METADATA_BUFFER); } - void add_custom_options(flatbuffers::Offset> custom_options) + const flatbuffers::Vector> *metadata() const { - fbb_.AddOffset(Operator::VT_CUSTOM_OPTIONS, custom_options); + return GetPointer> *>( + VT_METADATA); } - void add_custom_options_format(circle::CustomOptionsFormat custom_options_format) + const flatbuffers::Vector> *signature_defs() const + { + return GetPointer> *>( + VT_SIGNATURE_DEFS); + } + bool Verify(flatbuffers::Verifier &verifier) const + { + return VerifyTableStart(verifier) && VerifyField(verifier, VT_VERSION) && + VerifyOffset(verifier, VT_OPERATOR_CODES) && verifier.VerifyVector(operator_codes()) && + verifier.VerifyVectorOfTables(operator_codes()) && + VerifyOffset(verifier, VT_SUBGRAPHS) && verifier.VerifyVector(subgraphs()) && + verifier.VerifyVectorOfTables(subgraphs()) && VerifyOffset(verifier, VT_DESCRIPTION) && + verifier.VerifyString(description()) && VerifyOffset(verifier, VT_BUFFERS) && + verifier.VerifyVector(buffers()) && verifier.VerifyVectorOfTables(buffers()) && + VerifyOffset(verifier, VT_METADATA_BUFFER) && verifier.VerifyVector(metadata_buffer()) && + VerifyOffset(verifier, VT_METADATA) && verifier.VerifyVector(metadata()) && + verifier.VerifyVectorOfTables(metadata()) && VerifyOffset(verifier, VT_SIGNATURE_DEFS) && + verifier.VerifyVector(signature_defs()) && + verifier.VerifyVectorOfTables(signature_defs()) && verifier.EndTable(); + } + ModelT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; + void UnPackTo(ModelT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; + static flatbuffers::Offset + Pack(flatbuffers::FlatBufferBuilder &_fbb, const ModelT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); +}; + +struct ModelBuilder +{ + typedef Model Table; + flatbuffers::FlatBufferBuilder &fbb_; + flatbuffers::uoffset_t start_; + void add_version(uint32_t version) { fbb_.AddElement(Model::VT_VERSION, version, 0); } + void add_operator_codes( + flatbuffers::Offset>> + operator_codes) + { + fbb_.AddOffset(Model::VT_OPERATOR_CODES, operator_codes); + } + void add_subgraphs( + flatbuffers::Offset>> subgraphs) + { + fbb_.AddOffset(Model::VT_SUBGRAPHS, subgraphs); + } + void add_description(flatbuffers::Offset description) + { + fbb_.AddOffset(Model::VT_DESCRIPTION, description); + } + void + add_buffers(flatbuffers::Offset>> buffers) + { + fbb_.AddOffset(Model::VT_BUFFERS, buffers); + } + void add_metadata_buffer(flatbuffers::Offset> metadata_buffer) { - fbb_.AddElement(Operator::VT_CUSTOM_OPTIONS_FORMAT, - static_cast(custom_options_format), 0); + fbb_.AddOffset(Model::VT_METADATA_BUFFER, metadata_buffer); } - void add_mutating_variable_inputs( - flatbuffers::Offset> mutating_variable_inputs) + void add_metadata( + flatbuffers::Offset>> metadata) { - fbb_.AddOffset(Operator::VT_MUTATING_VARIABLE_INPUTS, mutating_variable_inputs); + fbb_.AddOffset(Model::VT_METADATA, metadata); } - void add_intermediates(flatbuffers::Offset> intermediates) + void add_signature_defs( + flatbuffers::Offset>> + signature_defs) { - fbb_.AddOffset(Operator::VT_INTERMEDIATES, intermediates); + fbb_.AddOffset(Model::VT_SIGNATURE_DEFS, signature_defs); } - explicit OperatorBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) + explicit ModelBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } - flatbuffers::Offset Finish() + flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); + auto o = flatbuffers::Offset(end); return o; } }; -inline flatbuffers::Offset CreateOperator( - flatbuffers::FlatBufferBuilder &_fbb, uint32_t opcode_index = 0, - flatbuffers::Offset> inputs = 0, - flatbuffers::Offset> outputs = 0, - circle::BuiltinOptions builtin_options_type = circle::BuiltinOptions_NONE, - flatbuffers::Offset builtin_options = 0, - flatbuffers::Offset> custom_options = 0, - circle::CustomOptionsFormat custom_options_format = circle::CustomOptionsFormat_FLEXBUFFERS, - flatbuffers::Offset> mutating_variable_inputs = 0, - flatbuffers::Offset> intermediates = 0) +inline flatbuffers::Offset CreateModel( + flatbuffers::FlatBufferBuilder &_fbb, uint32_t version = 0, + flatbuffers::Offset>> + operator_codes = 0, + flatbuffers::Offset>> subgraphs = 0, + flatbuffers::Offset description = 0, + flatbuffers::Offset>> buffers = 0, + flatbuffers::Offset> metadata_buffer = 0, + flatbuffers::Offset>> metadata = 0, + flatbuffers::Offset>> + signature_defs = 0) { - OperatorBuilder builder_(_fbb); - builder_.add_intermediates(intermediates); - builder_.add_mutating_variable_inputs(mutating_variable_inputs); - builder_.add_custom_options(custom_options); - builder_.add_builtin_options(builtin_options); - builder_.add_outputs(outputs); - builder_.add_inputs(inputs); - builder_.add_opcode_index(opcode_index); - builder_.add_custom_options_format(custom_options_format); - builder_.add_builtin_options_type(builtin_options_type); + ModelBuilder builder_(_fbb); + builder_.add_signature_defs(signature_defs); + builder_.add_metadata(metadata); + builder_.add_metadata_buffer(metadata_buffer); + builder_.add_buffers(buffers); + builder_.add_description(description); + builder_.add_subgraphs(subgraphs); + builder_.add_operator_codes(operator_codes); + builder_.add_version(version); return builder_.Finish(); } -inline flatbuffers::Offset CreateOperatorDirect( - flatbuffers::FlatBufferBuilder &_fbb, uint32_t opcode_index = 0, - const std::vector *inputs = nullptr, const std::vector *outputs = nullptr, - circle::BuiltinOptions builtin_options_type = circle::BuiltinOptions_NONE, - flatbuffers::Offset builtin_options = 0, - const std::vector *custom_options = nullptr, - circle::CustomOptionsFormat custom_options_format = circle::CustomOptionsFormat_FLEXBUFFERS, - const std::vector *mutating_variable_inputs = nullptr, - const std::vector *intermediates = nullptr) +inline flatbuffers::Offset CreateModelDirect( + flatbuffers::FlatBufferBuilder &_fbb, uint32_t version = 0, + const std::vector> *operator_codes = nullptr, + const std::vector> *subgraphs = nullptr, + const char *description = nullptr, + const std::vector> *buffers = nullptr, + const std::vector *metadata_buffer = nullptr, + const std::vector> *metadata = nullptr, + const std::vector> *signature_defs = nullptr) { - auto inputs__ = inputs ? _fbb.CreateVector(*inputs) : 0; - auto outputs__ = outputs ? _fbb.CreateVector(*outputs) : 0; - auto custom_options__ = custom_options ? _fbb.CreateVector(*custom_options) : 0; - auto mutating_variable_inputs__ = - mutating_variable_inputs ? _fbb.CreateVector(*mutating_variable_inputs) : 0; - auto intermediates__ = intermediates ? _fbb.CreateVector(*intermediates) : 0; - return circle::CreateOperator(_fbb, opcode_index, inputs__, outputs__, builtin_options_type, - builtin_options, custom_options__, custom_options_format, - mutating_variable_inputs__, intermediates__); + auto operator_codes__ = + operator_codes ? _fbb.CreateVector>(*operator_codes) + : 0; + auto subgraphs__ = + subgraphs ? _fbb.CreateVector>(*subgraphs) : 0; + auto description__ = description ? _fbb.CreateString(description) : 0; + auto buffers__ = buffers ? _fbb.CreateVector>(*buffers) : 0; + auto metadata_buffer__ = metadata_buffer ? _fbb.CreateVector(*metadata_buffer) : 0; + auto metadata__ = + metadata ? _fbb.CreateVector>(*metadata) : 0; + auto signature_defs__ = + signature_defs ? _fbb.CreateVector>(*signature_defs) + : 0; + return circle::CreateModel(_fbb, version, operator_codes__, subgraphs__, description__, buffers__, + metadata_buffer__, metadata__, signature_defs__); } -flatbuffers::Offset -CreateOperator(flatbuffers::FlatBufferBuilder &_fbb, const OperatorT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); +flatbuffers::Offset CreateModel(flatbuffers::FlatBufferBuilder &_fbb, const ModelT *_o, + const flatbuffers::rehasher_function_t *_rehasher = nullptr); -struct SubGraphT : public flatbuffers::NativeTable +inline CustomQuantizationT * +CustomQuantization::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - typedef SubGraph TableType; - std::vector> tensors{}; - std::vector inputs{}; - std::vector outputs{}; - std::vector> operators{}; - std::string name{}; - circle::DataFormat data_format = circle::DataFormat_CHANNELS_LAST; -}; + auto _o = std::unique_ptr(new CustomQuantizationT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} -struct SubGraph FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +inline void CustomQuantization::UnPackTo(CustomQuantizationT *_o, + const flatbuffers::resolver_function_t *_resolver) const { - typedef SubGraphT NativeTableType; - typedef SubGraphBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE - { - VT_TENSORS = 4, - VT_INPUTS = 6, - VT_OUTPUTS = 8, - VT_OPERATORS = 10, - VT_NAME = 12, - VT_DATA_FORMAT = 14 - }; - const flatbuffers::Vector> *tensors() const - { - return GetPointer> *>(VT_TENSORS); - } - const flatbuffers::Vector *inputs() const - { - return GetPointer *>(VT_INPUTS); - } - const flatbuffers::Vector *outputs() const - { - return GetPointer *>(VT_OUTPUTS); - } - const flatbuffers::Vector> *operators() const - { - return GetPointer> *>( - VT_OPERATORS); - } - const flatbuffers::String *name() const - { - return GetPointer(VT_NAME); - } - circle::DataFormat data_format() const - { - return static_cast(GetField(VT_DATA_FORMAT, 0)); - } - bool Verify(flatbuffers::Verifier &verifier) const + (void)_o; + (void)_resolver; { - return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_TENSORS) && - verifier.VerifyVector(tensors()) && verifier.VerifyVectorOfTables(tensors()) && - VerifyOffset(verifier, VT_INPUTS) && verifier.VerifyVector(inputs()) && - VerifyOffset(verifier, VT_OUTPUTS) && verifier.VerifyVector(outputs()) && - VerifyOffset(verifier, VT_OPERATORS) && verifier.VerifyVector(operators()) && - verifier.VerifyVectorOfTables(operators()) && VerifyOffset(verifier, VT_NAME) && - verifier.VerifyString(name()) && VerifyField(verifier, VT_DATA_FORMAT) && - verifier.EndTable(); + auto _e = custom(); + if (_e) + { + _o->custom.resize(_e->size()); + std::copy(_e->begin(), _e->end(), _o->custom.begin()); + } } - SubGraphT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(SubGraphT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); -}; +} -struct SubGraphBuilder +inline flatbuffers::Offset +CustomQuantization::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CustomQuantizationT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - typedef SubGraph Table; - flatbuffers::FlatBufferBuilder &fbb_; - flatbuffers::uoffset_t start_; - void - add_tensors(flatbuffers::Offset>> tensors) + return CreateCustomQuantization(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset +CreateCustomQuantization(flatbuffers::FlatBufferBuilder &_fbb, const CustomQuantizationT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + (void)_rehasher; + (void)_o; + struct _VectorArgs { - fbb_.AddOffset(SubGraph::VT_TENSORS, tensors); - } - void add_inputs(flatbuffers::Offset> inputs) + flatbuffers::FlatBufferBuilder *__fbb; + const CustomQuantizationT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + _fbb.ForceVectorAlignment(_o->custom.size(), sizeof(uint8_t), 16); + auto _custom = _o->custom.size() ? _fbb.CreateVector(_o->custom) : 0; + return circle::CreateCustomQuantization(_fbb, _custom); +} + +inline QuantizationParametersT * +QuantizationParameters::UnPack(const flatbuffers::resolver_function_t *_resolver) const +{ + auto _o = std::unique_ptr(new QuantizationParametersT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} + +inline void +QuantizationParameters::UnPackTo(QuantizationParametersT *_o, + const flatbuffers::resolver_function_t *_resolver) const +{ + (void)_o; + (void)_resolver; { - fbb_.AddOffset(SubGraph::VT_INPUTS, inputs); + auto _e = min(); + if (_e) + { + _o->min.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->min[_i] = _e->Get(_i); + } + } } - void add_outputs(flatbuffers::Offset> outputs) { - fbb_.AddOffset(SubGraph::VT_OUTPUTS, outputs); + auto _e = max(); + if (_e) + { + _o->max.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->max[_i] = _e->Get(_i); + } + } } - void add_operators( - flatbuffers::Offset>> operators) { - fbb_.AddOffset(SubGraph::VT_OPERATORS, operators); + auto _e = scale(); + if (_e) + { + _o->scale.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->scale[_i] = _e->Get(_i); + } + } } - void add_name(flatbuffers::Offset name) { - fbb_.AddOffset(SubGraph::VT_NAME, name); + auto _e = zero_point(); + if (_e) + { + _o->zero_point.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->zero_point[_i] = _e->Get(_i); + } + } } - void add_data_format(circle::DataFormat data_format) { - fbb_.AddElement(SubGraph::VT_DATA_FORMAT, static_cast(data_format), 0); + auto _e = details_type(); + _o->details.type = _e; } - explicit SubGraphBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - start_ = fbb_.StartTable(); + auto _e = details(); + if (_e) + _o->details.value = circle::QuantizationDetailsUnion::UnPack(_e, details_type(), _resolver); } - flatbuffers::Offset Finish() { - const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); - return o; + auto _e = quantized_dimension(); + _o->quantized_dimension = _e; } -}; +} -inline flatbuffers::Offset CreateSubGraph( - flatbuffers::FlatBufferBuilder &_fbb, - flatbuffers::Offset>> tensors = 0, - flatbuffers::Offset> inputs = 0, - flatbuffers::Offset> outputs = 0, - flatbuffers::Offset>> operators = 0, - flatbuffers::Offset name = 0, - circle::DataFormat data_format = circle::DataFormat_CHANNELS_LAST) +inline flatbuffers::Offset +QuantizationParameters::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const QuantizationParametersT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - SubGraphBuilder builder_(_fbb); - builder_.add_name(name); - builder_.add_operators(operators); - builder_.add_outputs(outputs); - builder_.add_inputs(inputs); - builder_.add_tensors(tensors); - builder_.add_data_format(data_format); - return builder_.Finish(); + return CreateQuantizationParameters(_fbb, _o, _rehasher); } -inline flatbuffers::Offset CreateSubGraphDirect( - flatbuffers::FlatBufferBuilder &_fbb, - const std::vector> *tensors = nullptr, - const std::vector *inputs = nullptr, const std::vector *outputs = nullptr, - const std::vector> *operators = nullptr, - const char *name = nullptr, circle::DataFormat data_format = circle::DataFormat_CHANNELS_LAST) +inline flatbuffers::Offset +CreateQuantizationParameters(flatbuffers::FlatBufferBuilder &_fbb, + const QuantizationParametersT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - auto tensors__ = tensors ? _fbb.CreateVector>(*tensors) : 0; - auto inputs__ = inputs ? _fbb.CreateVector(*inputs) : 0; - auto outputs__ = outputs ? _fbb.CreateVector(*outputs) : 0; - auto operators__ = - operators ? _fbb.CreateVector>(*operators) : 0; - auto name__ = name ? _fbb.CreateString(name) : 0; - return circle::CreateSubGraph(_fbb, tensors__, inputs__, outputs__, operators__, name__, - data_format); + (void)_rehasher; + (void)_o; + struct _VectorArgs + { + flatbuffers::FlatBufferBuilder *__fbb; + const QuantizationParametersT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _min = _o->min.size() ? _fbb.CreateVector(_o->min) : 0; + auto _max = _o->max.size() ? _fbb.CreateVector(_o->max) : 0; + auto _scale = _o->scale.size() ? _fbb.CreateVector(_o->scale) : 0; + auto _zero_point = _o->zero_point.size() ? _fbb.CreateVector(_o->zero_point) : 0; + auto _details_type = _o->details.type; + auto _details = _o->details.Pack(_fbb); + auto _quantized_dimension = _o->quantized_dimension; + return circle::CreateQuantizationParameters(_fbb, _min, _max, _scale, _zero_point, _details_type, + _details, _quantized_dimension); } -flatbuffers::Offset -CreateSubGraph(flatbuffers::FlatBufferBuilder &_fbb, const SubGraphT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); - -struct BufferT : public flatbuffers::NativeTable +inline Int32VectorT *Int32Vector::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - typedef Buffer TableType; - std::vector data{}; -}; + auto _o = std::unique_ptr(new Int32VectorT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} -struct Buffer FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +inline void Int32Vector::UnPackTo(Int32VectorT *_o, + const flatbuffers::resolver_function_t *_resolver) const { - typedef BufferT NativeTableType; - typedef BufferBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE - { - VT_DATA = 4 - }; - const flatbuffers::Vector *data() const + (void)_o; + (void)_resolver; { - return GetPointer *>(VT_DATA); + auto _e = values(); + if (_e) + { + _o->values.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->values[_i] = _e->Get(_i); + } + } } - bool Verify(flatbuffers::Verifier &verifier) const +} + +inline flatbuffers::Offset +Int32Vector::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Int32VectorT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + return CreateInt32Vector(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset +CreateInt32Vector(flatbuffers::FlatBufferBuilder &_fbb, const Int32VectorT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + (void)_rehasher; + (void)_o; + struct _VectorArgs { - return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_DATA) && - verifier.VerifyVector(data()) && verifier.EndTable(); - } - BufferT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(BufferT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const BufferT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); -}; + flatbuffers::FlatBufferBuilder *__fbb; + const Int32VectorT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _values = _o->values.size() ? _fbb.CreateVector(_o->values) : 0; + return circle::CreateInt32Vector(_fbb, _values); +} -struct BufferBuilder +inline Uint16VectorT *Uint16Vector::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - typedef Buffer Table; - flatbuffers::FlatBufferBuilder &fbb_; - flatbuffers::uoffset_t start_; - void add_data(flatbuffers::Offset> data) + auto _o = std::unique_ptr(new Uint16VectorT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} + +inline void Uint16Vector::UnPackTo(Uint16VectorT *_o, + const flatbuffers::resolver_function_t *_resolver) const +{ + (void)_o; + (void)_resolver; { - fbb_.AddOffset(Buffer::VT_DATA, data); + auto _e = values(); + if (_e) + { + _o->values.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->values[_i] = _e->Get(_i); + } + } } - explicit BufferBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) +} + +inline flatbuffers::Offset +Uint16Vector::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Uint16VectorT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + return CreateUint16Vector(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset +CreateUint16Vector(flatbuffers::FlatBufferBuilder &_fbb, const Uint16VectorT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + (void)_rehasher; + (void)_o; + struct _VectorArgs { - start_ = fbb_.StartTable(); - } - flatbuffers::Offset Finish() + flatbuffers::FlatBufferBuilder *__fbb; + const Uint16VectorT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + _fbb.ForceVectorAlignment(_o->values.size(), sizeof(uint16_t), 4); + auto _values = _o->values.size() ? _fbb.CreateVector(_o->values) : 0; + return circle::CreateUint16Vector(_fbb, _values); +} + +inline Uint8VectorT *Uint8Vector::UnPack(const flatbuffers::resolver_function_t *_resolver) const +{ + auto _o = std::unique_ptr(new Uint8VectorT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} + +inline void Uint8Vector::UnPackTo(Uint8VectorT *_o, + const flatbuffers::resolver_function_t *_resolver) const +{ + (void)_o; + (void)_resolver; { - const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); - return o; + auto _e = values(); + if (_e) + { + _o->values.resize(_e->size()); + std::copy(_e->begin(), _e->end(), _o->values.begin()); + } } -}; +} -inline flatbuffers::Offset -CreateBuffer(flatbuffers::FlatBufferBuilder &_fbb, - flatbuffers::Offset> data = 0) +inline flatbuffers::Offset +Uint8Vector::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Uint8VectorT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - BufferBuilder builder_(_fbb); - builder_.add_data(data); - return builder_.Finish(); + return CreateUint8Vector(_fbb, _o, _rehasher); } - -inline flatbuffers::Offset CreateBufferDirect(flatbuffers::FlatBufferBuilder &_fbb, - const std::vector *data = nullptr) + +inline flatbuffers::Offset +CreateUint8Vector(flatbuffers::FlatBufferBuilder &_fbb, const Uint8VectorT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - if (data) + (void)_rehasher; + (void)_o; + struct _VectorArgs { - _fbb.ForceVectorAlignment(data->size(), sizeof(uint8_t), 16); - } - auto data__ = data ? _fbb.CreateVector(*data) : 0; - return circle::CreateBuffer(_fbb, data__); + flatbuffers::FlatBufferBuilder *__fbb; + const Uint8VectorT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + _fbb.ForceVectorAlignment(_o->values.size(), sizeof(uint8_t), 4); + auto _values = _o->values.size() ? _fbb.CreateVector(_o->values) : 0; + return circle::CreateUint8Vector(_fbb, _values); } -flatbuffers::Offset -CreateBuffer(flatbuffers::FlatBufferBuilder &_fbb, const BufferT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); - -struct MetadataT : public flatbuffers::NativeTable +inline DimensionMetadataT * +DimensionMetadata::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - typedef Metadata TableType; - std::string name{}; - uint32_t buffer = 0; -}; + auto _o = std::unique_ptr(new DimensionMetadataT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} -struct Metadata FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +inline void DimensionMetadata::UnPackTo(DimensionMetadataT *_o, + const flatbuffers::resolver_function_t *_resolver) const { - typedef MetadataT NativeTableType; - typedef MetadataBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + (void)_o; + (void)_resolver; { - VT_NAME = 4, - VT_BUFFER = 6 - }; - const flatbuffers::String *name() const + auto _e = format(); + _o->format = _e; + } { - return GetPointer(VT_NAME); + auto _e = dense_size(); + _o->dense_size = _e; } - uint32_t buffer() const { return GetField(VT_BUFFER, 0); } - bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NAME) && - verifier.VerifyString(name()) && VerifyField(verifier, VT_BUFFER) && - verifier.EndTable(); + auto _e = array_segments_type(); + _o->array_segments.type = _e; } - MetadataT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(MetadataT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const MetadataT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); -}; - -struct MetadataBuilder -{ - typedef Metadata Table; - flatbuffers::FlatBufferBuilder &fbb_; - flatbuffers::uoffset_t start_; - void add_name(flatbuffers::Offset name) { - fbb_.AddOffset(Metadata::VT_NAME, name); + auto _e = array_segments(); + if (_e) + _o->array_segments.value = + circle::SparseIndexVectorUnion::UnPack(_e, array_segments_type(), _resolver); } - void add_buffer(uint32_t buffer) { fbb_.AddElement(Metadata::VT_BUFFER, buffer, 0); } - explicit MetadataBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - start_ = fbb_.StartTable(); + auto _e = array_indices_type(); + _o->array_indices.type = _e; } - flatbuffers::Offset Finish() { - const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); - return o; + auto _e = array_indices(); + if (_e) + _o->array_indices.value = + circle::SparseIndexVectorUnion::UnPack(_e, array_indices_type(), _resolver); } -}; +} -inline flatbuffers::Offset -CreateMetadata(flatbuffers::FlatBufferBuilder &_fbb, - flatbuffers::Offset name = 0, uint32_t buffer = 0) +inline flatbuffers::Offset +DimensionMetadata::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DimensionMetadataT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - MetadataBuilder builder_(_fbb); - builder_.add_buffer(buffer); - builder_.add_name(name); - return builder_.Finish(); + return CreateDimensionMetadata(_fbb, _o, _rehasher); } -inline flatbuffers::Offset CreateMetadataDirect(flatbuffers::FlatBufferBuilder &_fbb, - const char *name = nullptr, - uint32_t buffer = 0) +inline flatbuffers::Offset +CreateDimensionMetadata(flatbuffers::FlatBufferBuilder &_fbb, const DimensionMetadataT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - auto name__ = name ? _fbb.CreateString(name) : 0; - return circle::CreateMetadata(_fbb, name__, buffer); + (void)_rehasher; + (void)_o; + struct _VectorArgs + { + flatbuffers::FlatBufferBuilder *__fbb; + const DimensionMetadataT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _format = _o->format; + auto _dense_size = _o->dense_size; + auto _array_segments_type = _o->array_segments.type; + auto _array_segments = _o->array_segments.Pack(_fbb); + auto _array_indices_type = _o->array_indices.type; + auto _array_indices = _o->array_indices.Pack(_fbb); + return circle::CreateDimensionMetadata(_fbb, _format, _dense_size, _array_segments_type, + _array_segments, _array_indices_type, _array_indices); } -flatbuffers::Offset -CreateMetadata(flatbuffers::FlatBufferBuilder &_fbb, const MetadataT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); - -struct TensorMapT : public flatbuffers::NativeTable +inline SparsityParametersT * +SparsityParameters::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - typedef TensorMap TableType; - std::string name{}; - uint32_t tensor_index = 0; -}; + auto _o = std::unique_ptr(new SparsityParametersT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} -struct TensorMap FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +inline void SparsityParameters::UnPackTo(SparsityParametersT *_o, + const flatbuffers::resolver_function_t *_resolver) const { - typedef TensorMapT NativeTableType; - typedef TensorMapBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + (void)_o; + (void)_resolver; { - VT_NAME = 4, - VT_TENSOR_INDEX = 6 - }; - const flatbuffers::String *name() const + auto _e = traversal_order(); + if (_e) + { + _o->traversal_order.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->traversal_order[_i] = _e->Get(_i); + } + } + } { - return GetPointer(VT_NAME); + auto _e = block_map(); + if (_e) + { + _o->block_map.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->block_map[_i] = _e->Get(_i); + } + } } - uint32_t tensor_index() const { return GetField(VT_TENSOR_INDEX, 0); } - bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NAME) && - verifier.VerifyString(name()) && VerifyField(verifier, VT_TENSOR_INDEX) && - verifier.EndTable(); + auto _e = dim_metadata(); + if (_e) + { + _o->dim_metadata.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->dim_metadata[_i] = + std::unique_ptr(_e->Get(_i)->UnPack(_resolver)); + } + } } - TensorMapT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(TensorMapT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const TensorMapT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); -}; +} -struct TensorMapBuilder +inline flatbuffers::Offset +SparsityParameters::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SparsityParametersT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - typedef TensorMap Table; - flatbuffers::FlatBufferBuilder &fbb_; - flatbuffers::uoffset_t start_; - void add_name(flatbuffers::Offset name) + return CreateSparsityParameters(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset +CreateSparsityParameters(flatbuffers::FlatBufferBuilder &_fbb, const SparsityParametersT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + (void)_rehasher; + (void)_o; + struct _VectorArgs { - fbb_.AddOffset(TensorMap::VT_NAME, name); - } - void add_tensor_index(uint32_t tensor_index) + flatbuffers::FlatBufferBuilder *__fbb; + const SparsityParametersT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _traversal_order = _o->traversal_order.size() ? _fbb.CreateVector(_o->traversal_order) : 0; + auto _block_map = _o->block_map.size() ? _fbb.CreateVector(_o->block_map) : 0; + auto _dim_metadata = _o->dim_metadata.size() + ? _fbb.CreateVector>( + _o->dim_metadata.size(), + [](size_t i, _VectorArgs *__va) { + return CreateDimensionMetadata( + *__va->__fbb, __va->__o->dim_metadata[i].get(), __va->__rehasher); + }, + &_va) + : 0; + return circle::CreateSparsityParameters(_fbb, _traversal_order, _block_map, _dim_metadata); +} + +inline VariantSubTypeT * +VariantSubType::UnPack(const flatbuffers::resolver_function_t *_resolver) const +{ + auto _o = std::unique_ptr(new VariantSubTypeT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} + +inline void VariantSubType::UnPackTo(VariantSubTypeT *_o, + const flatbuffers::resolver_function_t *_resolver) const +{ + (void)_o; + (void)_resolver; { - fbb_.AddElement(TensorMap::VT_TENSOR_INDEX, tensor_index, 0); + auto _e = shape(); + if (_e) + { + _o->shape.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->shape[_i] = _e->Get(_i); + } + } } - explicit TensorMapBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - start_ = fbb_.StartTable(); + auto _e = type(); + _o->type = _e; } - flatbuffers::Offset Finish() { - const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); - return o; + auto _e = has_rank(); + _o->has_rank = _e; } -}; +} -inline flatbuffers::Offset -CreateTensorMap(flatbuffers::FlatBufferBuilder &_fbb, - flatbuffers::Offset name = 0, uint32_t tensor_index = 0) +inline flatbuffers::Offset +VariantSubType::Pack(flatbuffers::FlatBufferBuilder &_fbb, const VariantSubTypeT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - TensorMapBuilder builder_(_fbb); - builder_.add_tensor_index(tensor_index); - builder_.add_name(name); - return builder_.Finish(); + return CreateVariantSubType(_fbb, _o, _rehasher); } -inline flatbuffers::Offset CreateTensorMapDirect(flatbuffers::FlatBufferBuilder &_fbb, - const char *name = nullptr, - uint32_t tensor_index = 0) +inline flatbuffers::Offset +CreateVariantSubType(flatbuffers::FlatBufferBuilder &_fbb, const VariantSubTypeT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - auto name__ = name ? _fbb.CreateString(name) : 0; - return circle::CreateTensorMap(_fbb, name__, tensor_index); + (void)_rehasher; + (void)_o; + struct _VectorArgs + { + flatbuffers::FlatBufferBuilder *__fbb; + const VariantSubTypeT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _shape = _o->shape.size() ? _fbb.CreateVector(_o->shape) : 0; + auto _type = _o->type; + auto _has_rank = _o->has_rank; + return circle::CreateVariantSubType(_fbb, _shape, _type, _has_rank); } -flatbuffers::Offset -CreateTensorMap(flatbuffers::FlatBufferBuilder &_fbb, const TensorMapT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); - -struct SignatureDefT : public flatbuffers::NativeTable +inline TensorT *Tensor::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - typedef SignatureDef TableType; - std::vector> inputs{}; - std::vector> outputs{}; - std::string signature_key{}; - uint32_t subgraph_index = 0; -}; + auto _o = std::unique_ptr(new TensorT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} -struct SignatureDef FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +inline void Tensor::UnPackTo(TensorT *_o, const flatbuffers::resolver_function_t *_resolver) const { - typedef SignatureDefT NativeTableType; - typedef SignatureDefBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE + (void)_o; + (void)_resolver; { - VT_INPUTS = 4, - VT_OUTPUTS = 6, - VT_SIGNATURE_KEY = 8, - VT_SUBGRAPH_INDEX = 12 - }; - const flatbuffers::Vector> *inputs() const + auto _e = shape(); + if (_e) + { + _o->shape.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->shape[_i] = _e->Get(_i); + } + } + } { - return GetPointer> *>( - VT_INPUTS); + auto _e = type(); + _o->type = _e; } - const flatbuffers::Vector> *outputs() const { - return GetPointer> *>( - VT_OUTPUTS); + auto _e = buffer(); + _o->buffer = _e; } - const flatbuffers::String *signature_key() const { - return GetPointer(VT_SIGNATURE_KEY); + auto _e = name(); + if (_e) + _o->name = _e->str(); } - uint32_t subgraph_index() const { return GetField(VT_SUBGRAPH_INDEX, 0); } - bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_INPUTS) && - verifier.VerifyVector(inputs()) && verifier.VerifyVectorOfTables(inputs()) && - VerifyOffset(verifier, VT_OUTPUTS) && verifier.VerifyVector(outputs()) && - verifier.VerifyVectorOfTables(outputs()) && VerifyOffset(verifier, VT_SIGNATURE_KEY) && - verifier.VerifyString(signature_key()) && - VerifyField(verifier, VT_SUBGRAPH_INDEX) && verifier.EndTable(); + auto _e = quantization(); + if (_e) + _o->quantization = std::unique_ptr(_e->UnPack(_resolver)); } - SignatureDefT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(SignatureDefT *_o, - const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const SignatureDefT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); -}; + { + auto _e = is_variable(); + _o->is_variable = _e; + } + { + auto _e = sparsity(); + if (_e) + _o->sparsity = std::unique_ptr(_e->UnPack(_resolver)); + } + { + auto _e = shape_signature(); + if (_e) + { + _o->shape_signature.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->shape_signature[_i] = _e->Get(_i); + } + } + } + { + auto _e = has_rank(); + _o->has_rank = _e; + } + { + auto _e = variant_tensors(); + if (_e) + { + _o->variant_tensors.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->variant_tensors[_i] = + std::unique_ptr(_e->Get(_i)->UnPack(_resolver)); + } + } + } +} -struct SignatureDefBuilder +inline flatbuffers::Offset Tensor::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const TensorT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - typedef SignatureDef Table; - flatbuffers::FlatBufferBuilder &fbb_; - flatbuffers::uoffset_t start_; - void add_inputs( - flatbuffers::Offset>> inputs) + return CreateTensor(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset CreateTensor(flatbuffers::FlatBufferBuilder &_fbb, + const TensorT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + (void)_rehasher; + (void)_o; + struct _VectorArgs { - fbb_.AddOffset(SignatureDef::VT_INPUTS, inputs); + flatbuffers::FlatBufferBuilder *__fbb; + const TensorT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _shape = _o->shape.size() ? _fbb.CreateVector(_o->shape) : 0; + auto _type = _o->type; + auto _buffer = _o->buffer; + auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name); + auto _quantization = + _o->quantization ? CreateQuantizationParameters(_fbb, _o->quantization.get(), _rehasher) : 0; + auto _is_variable = _o->is_variable; + auto _sparsity = _o->sparsity ? CreateSparsityParameters(_fbb, _o->sparsity.get(), _rehasher) : 0; + auto _shape_signature = _o->shape_signature.size() ? _fbb.CreateVector(_o->shape_signature) : 0; + auto _has_rank = _o->has_rank; + auto _variant_tensors = + _o->variant_tensors.size() + ? _fbb.CreateVector>( + _o->variant_tensors.size(), + [](size_t i, _VectorArgs *__va) { + return CreateVariantSubType(*__va->__fbb, __va->__o->variant_tensors[i].get(), + __va->__rehasher); + }, + &_va) + : 0; + return circle::CreateTensor(_fbb, _shape, _type, _buffer, _name, _quantization, _is_variable, + _sparsity, _shape_signature, _has_rank, _variant_tensors); +} + +inline Conv2DOptionsT * +Conv2DOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +{ + auto _o = std::unique_ptr(new Conv2DOptionsT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} + +inline void Conv2DOptions::UnPackTo(Conv2DOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const +{ + (void)_o; + (void)_resolver; + { + auto _e = padding(); + _o->padding = _e; } - void add_outputs( - flatbuffers::Offset>> outputs) { - fbb_.AddOffset(SignatureDef::VT_OUTPUTS, outputs); + auto _e = stride_w(); + _o->stride_w = _e; } - void add_signature_key(flatbuffers::Offset signature_key) { - fbb_.AddOffset(SignatureDef::VT_SIGNATURE_KEY, signature_key); + auto _e = stride_h(); + _o->stride_h = _e; } - void add_subgraph_index(uint32_t subgraph_index) { - fbb_.AddElement(SignatureDef::VT_SUBGRAPH_INDEX, subgraph_index, 0); + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; } - explicit SignatureDefBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - start_ = fbb_.StartTable(); + auto _e = dilation_w_factor(); + _o->dilation_w_factor = _e; } - flatbuffers::Offset Finish() { - const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); - return o; + auto _e = dilation_h_factor(); + _o->dilation_h_factor = _e; } -}; +} -inline flatbuffers::Offset CreateSignatureDef( - flatbuffers::FlatBufferBuilder &_fbb, - flatbuffers::Offset>> inputs = 0, - flatbuffers::Offset>> outputs = 0, - flatbuffers::Offset signature_key = 0, uint32_t subgraph_index = 0) +inline flatbuffers::Offset +Conv2DOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Conv2DOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - SignatureDefBuilder builder_(_fbb); - builder_.add_subgraph_index(subgraph_index); - builder_.add_signature_key(signature_key); - builder_.add_outputs(outputs); - builder_.add_inputs(inputs); - return builder_.Finish(); + return CreateConv2DOptions(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset +CreateConv2DOptions(flatbuffers::FlatBufferBuilder &_fbb, const Conv2DOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + (void)_rehasher; + (void)_o; + struct _VectorArgs + { + flatbuffers::FlatBufferBuilder *__fbb; + const Conv2DOptionsT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _padding = _o->padding; + auto _stride_w = _o->stride_w; + auto _stride_h = _o->stride_h; + auto _fused_activation_function = _o->fused_activation_function; + auto _dilation_w_factor = _o->dilation_w_factor; + auto _dilation_h_factor = _o->dilation_h_factor; + return circle::CreateConv2DOptions(_fbb, _padding, _stride_w, _stride_h, + _fused_activation_function, _dilation_w_factor, + _dilation_h_factor); } -inline flatbuffers::Offset CreateSignatureDefDirect( - flatbuffers::FlatBufferBuilder &_fbb, - const std::vector> *inputs = nullptr, - const std::vector> *outputs = nullptr, - const char *signature_key = nullptr, uint32_t subgraph_index = 0) +inline Conv3DOptionsT * +Conv3DOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto inputs__ = inputs ? _fbb.CreateVector>(*inputs) : 0; - auto outputs__ = - outputs ? _fbb.CreateVector>(*outputs) : 0; - auto signature_key__ = signature_key ? _fbb.CreateString(signature_key) : 0; - return circle::CreateSignatureDef(_fbb, inputs__, outputs__, signature_key__, subgraph_index); + auto _o = std::unique_ptr(new Conv3DOptionsT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); } -flatbuffers::Offset -CreateSignatureDef(flatbuffers::FlatBufferBuilder &_fbb, const SignatureDefT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); - -struct ModelT : public flatbuffers::NativeTable -{ - typedef Model TableType; - uint32_t version = 0; - std::vector> operator_codes{}; - std::vector> subgraphs{}; - std::string description{}; - std::vector> buffers{}; - std::vector metadata_buffer{}; - std::vector> metadata{}; - std::vector> signature_defs{}; -}; - -struct Model FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table +inline void Conv3DOptions::UnPackTo(Conv3DOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { - typedef ModelT NativeTableType; - typedef ModelBuilder Builder; - enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE - { - VT_VERSION = 4, - VT_OPERATOR_CODES = 6, - VT_SUBGRAPHS = 8, - VT_DESCRIPTION = 10, - VT_BUFFERS = 12, - VT_METADATA_BUFFER = 14, - VT_METADATA = 16, - VT_SIGNATURE_DEFS = 18 - }; - uint32_t version() const { return GetField(VT_VERSION, 0); } - const flatbuffers::Vector> *operator_codes() const + (void)_o; + (void)_resolver; { - return GetPointer> *>( - VT_OPERATOR_CODES); + auto _e = padding(); + _o->padding = _e; } - const flatbuffers::Vector> *subgraphs() const { - return GetPointer> *>( - VT_SUBGRAPHS); + auto _e = stride_d(); + _o->stride_d = _e; } - const flatbuffers::String *description() const { - return GetPointer(VT_DESCRIPTION); + auto _e = stride_w(); + _o->stride_w = _e; } - const flatbuffers::Vector> *buffers() const { - return GetPointer> *>(VT_BUFFERS); + auto _e = stride_h(); + _o->stride_h = _e; } - const flatbuffers::Vector *metadata_buffer() const { - return GetPointer *>(VT_METADATA_BUFFER); + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; } - const flatbuffers::Vector> *metadata() const { - return GetPointer> *>( - VT_METADATA); + auto _e = dilation_d_factor(); + _o->dilation_d_factor = _e; } - const flatbuffers::Vector> *signature_defs() const { - return GetPointer> *>( - VT_SIGNATURE_DEFS); + auto _e = dilation_w_factor(); + _o->dilation_w_factor = _e; } - bool Verify(flatbuffers::Verifier &verifier) const { - return VerifyTableStart(verifier) && VerifyField(verifier, VT_VERSION) && - VerifyOffset(verifier, VT_OPERATOR_CODES) && verifier.VerifyVector(operator_codes()) && - verifier.VerifyVectorOfTables(operator_codes()) && - VerifyOffset(verifier, VT_SUBGRAPHS) && verifier.VerifyVector(subgraphs()) && - verifier.VerifyVectorOfTables(subgraphs()) && VerifyOffset(verifier, VT_DESCRIPTION) && - verifier.VerifyString(description()) && VerifyOffset(verifier, VT_BUFFERS) && - verifier.VerifyVector(buffers()) && verifier.VerifyVectorOfTables(buffers()) && - VerifyOffset(verifier, VT_METADATA_BUFFER) && verifier.VerifyVector(metadata_buffer()) && - VerifyOffset(verifier, VT_METADATA) && verifier.VerifyVector(metadata()) && - verifier.VerifyVectorOfTables(metadata()) && VerifyOffset(verifier, VT_SIGNATURE_DEFS) && - verifier.VerifyVector(signature_defs()) && - verifier.VerifyVectorOfTables(signature_defs()) && verifier.EndTable(); + auto _e = dilation_h_factor(); + _o->dilation_h_factor = _e; } - ModelT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const; - void UnPackTo(ModelT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const; - static flatbuffers::Offset - Pack(flatbuffers::FlatBufferBuilder &_fbb, const ModelT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); -}; +} -struct ModelBuilder +inline flatbuffers::Offset +Conv3DOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Conv3DOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - typedef Model Table; - flatbuffers::FlatBufferBuilder &fbb_; - flatbuffers::uoffset_t start_; - void add_version(uint32_t version) { fbb_.AddElement(Model::VT_VERSION, version, 0); } - void add_operator_codes( - flatbuffers::Offset>> - operator_codes) - { - fbb_.AddOffset(Model::VT_OPERATOR_CODES, operator_codes); - } - void add_subgraphs( - flatbuffers::Offset>> subgraphs) - { - fbb_.AddOffset(Model::VT_SUBGRAPHS, subgraphs); - } - void add_description(flatbuffers::Offset description) + return CreateConv3DOptions(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset +CreateConv3DOptions(flatbuffers::FlatBufferBuilder &_fbb, const Conv3DOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + (void)_rehasher; + (void)_o; + struct _VectorArgs { - fbb_.AddOffset(Model::VT_DESCRIPTION, description); - } - void - add_buffers(flatbuffers::Offset>> buffers) + flatbuffers::FlatBufferBuilder *__fbb; + const Conv3DOptionsT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _padding = _o->padding; + auto _stride_d = _o->stride_d; + auto _stride_w = _o->stride_w; + auto _stride_h = _o->stride_h; + auto _fused_activation_function = _o->fused_activation_function; + auto _dilation_d_factor = _o->dilation_d_factor; + auto _dilation_w_factor = _o->dilation_w_factor; + auto _dilation_h_factor = _o->dilation_h_factor; + return circle::CreateConv3DOptions(_fbb, _padding, _stride_d, _stride_w, _stride_h, + _fused_activation_function, _dilation_d_factor, + _dilation_w_factor, _dilation_h_factor); +} + +inline Pool2DOptionsT * +Pool2DOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +{ + auto _o = std::unique_ptr(new Pool2DOptionsT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} + +inline void Pool2DOptions::UnPackTo(Pool2DOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const +{ + (void)_o; + (void)_resolver; { - fbb_.AddOffset(Model::VT_BUFFERS, buffers); + auto _e = padding(); + _o->padding = _e; } - void add_metadata_buffer(flatbuffers::Offset> metadata_buffer) { - fbb_.AddOffset(Model::VT_METADATA_BUFFER, metadata_buffer); + auto _e = stride_w(); + _o->stride_w = _e; } - void add_metadata( - flatbuffers::Offset>> metadata) { - fbb_.AddOffset(Model::VT_METADATA, metadata); + auto _e = stride_h(); + _o->stride_h = _e; } - void add_signature_defs( - flatbuffers::Offset>> - signature_defs) { - fbb_.AddOffset(Model::VT_SIGNATURE_DEFS, signature_defs); + auto _e = filter_width(); + _o->filter_width = _e; } - explicit ModelBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { - start_ = fbb_.StartTable(); + auto _e = filter_height(); + _o->filter_height = _e; } - flatbuffers::Offset Finish() { - const auto end = fbb_.EndTable(start_); - auto o = flatbuffers::Offset(end); - return o; + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; } -}; +} -inline flatbuffers::Offset CreateModel( - flatbuffers::FlatBufferBuilder &_fbb, uint32_t version = 0, - flatbuffers::Offset>> - operator_codes = 0, - flatbuffers::Offset>> subgraphs = 0, - flatbuffers::Offset description = 0, - flatbuffers::Offset>> buffers = 0, - flatbuffers::Offset> metadata_buffer = 0, - flatbuffers::Offset>> metadata = 0, - flatbuffers::Offset>> - signature_defs = 0) +inline flatbuffers::Offset +Pool2DOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Pool2DOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - ModelBuilder builder_(_fbb); - builder_.add_signature_defs(signature_defs); - builder_.add_metadata(metadata); - builder_.add_metadata_buffer(metadata_buffer); - builder_.add_buffers(buffers); - builder_.add_description(description); - builder_.add_subgraphs(subgraphs); - builder_.add_operator_codes(operator_codes); - builder_.add_version(version); - return builder_.Finish(); + return CreatePool2DOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset CreateModelDirect( - flatbuffers::FlatBufferBuilder &_fbb, uint32_t version = 0, - const std::vector> *operator_codes = nullptr, - const std::vector> *subgraphs = nullptr, - const char *description = nullptr, - const std::vector> *buffers = nullptr, - const std::vector *metadata_buffer = nullptr, - const std::vector> *metadata = nullptr, - const std::vector> *signature_defs = nullptr) +inline flatbuffers::Offset +CreatePool2DOptions(flatbuffers::FlatBufferBuilder &_fbb, const Pool2DOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - auto operator_codes__ = - operator_codes ? _fbb.CreateVector>(*operator_codes) - : 0; - auto subgraphs__ = - subgraphs ? _fbb.CreateVector>(*subgraphs) : 0; - auto description__ = description ? _fbb.CreateString(description) : 0; - auto buffers__ = buffers ? _fbb.CreateVector>(*buffers) : 0; - auto metadata_buffer__ = metadata_buffer ? _fbb.CreateVector(*metadata_buffer) : 0; - auto metadata__ = - metadata ? _fbb.CreateVector>(*metadata) : 0; - auto signature_defs__ = - signature_defs ? _fbb.CreateVector>(*signature_defs) - : 0; - return circle::CreateModel(_fbb, version, operator_codes__, subgraphs__, description__, buffers__, - metadata_buffer__, metadata__, signature_defs__); + (void)_rehasher; + (void)_o; + struct _VectorArgs + { + flatbuffers::FlatBufferBuilder *__fbb; + const Pool2DOptionsT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _padding = _o->padding; + auto _stride_w = _o->stride_w; + auto _stride_h = _o->stride_h; + auto _filter_width = _o->filter_width; + auto _filter_height = _o->filter_height; + auto _fused_activation_function = _o->fused_activation_function; + return circle::CreatePool2DOptions(_fbb, _padding, _stride_w, _stride_h, _filter_width, + _filter_height, _fused_activation_function); } -flatbuffers::Offset CreateModel(flatbuffers::FlatBufferBuilder &_fbb, const ModelT *_o, - const flatbuffers::rehasher_function_t *_rehasher = nullptr); - -inline CustomQuantizationT * -CustomQuantization::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline DepthwiseConv2DOptionsT * +DepthwiseConv2DOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new CustomQuantizationT()); + auto _o = std::unique_ptr(new DepthwiseConv2DOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void CustomQuantization::UnPackTo(CustomQuantizationT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +DepthwiseConv2DOptions::UnPackTo(DepthwiseConv2DOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = custom(); - if (_e) - { - _o->custom.resize(_e->size()); - std::copy(_e->begin(), _e->end(), _o->custom.begin()); - } + auto _e = padding(); + _o->padding = _e; + } + { + auto _e = stride_w(); + _o->stride_w = _e; + } + { + auto _e = stride_h(); + _o->stride_h = _e; + } + { + auto _e = depth_multiplier(); + _o->depth_multiplier = _e; + } + { + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; + } + { + auto _e = dilation_w_factor(); + _o->dilation_w_factor = _e; + } + { + auto _e = dilation_h_factor(); + _o->dilation_h_factor = _e; } } -inline flatbuffers::Offset -CustomQuantization::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CustomQuantizationT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +DepthwiseConv2DOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const DepthwiseConv2DOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateCustomQuantization(_fbb, _o, _rehasher); + return CreateDepthwiseConv2DOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateCustomQuantization(flatbuffers::FlatBufferBuilder &_fbb, const CustomQuantizationT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateDepthwiseConv2DOptions(flatbuffers::FlatBufferBuilder &_fbb, + const DepthwiseConv2DOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const CustomQuantizationT *__o; + const DepthwiseConv2DOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - _fbb.ForceVectorAlignment(_o->custom.size(), sizeof(uint8_t), 16); - auto _custom = _o->custom.size() ? _fbb.CreateVector(_o->custom) : 0; - return circle::CreateCustomQuantization(_fbb, _custom); + auto _padding = _o->padding; + auto _stride_w = _o->stride_w; + auto _stride_h = _o->stride_h; + auto _depth_multiplier = _o->depth_multiplier; + auto _fused_activation_function = _o->fused_activation_function; + auto _dilation_w_factor = _o->dilation_w_factor; + auto _dilation_h_factor = _o->dilation_h_factor; + return circle::CreateDepthwiseConv2DOptions(_fbb, _padding, _stride_w, _stride_h, + _depth_multiplier, _fused_activation_function, + _dilation_w_factor, _dilation_h_factor); } -inline QuantizationParametersT * -QuantizationParameters::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ConcatEmbeddingsOptionsT * +ConcatEmbeddingsOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new QuantizationParametersT()); + auto _o = std::unique_ptr(new ConcatEmbeddingsOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } inline void -QuantizationParameters::UnPackTo(QuantizationParametersT *_o, - const flatbuffers::resolver_function_t *_resolver) const +ConcatEmbeddingsOptions::UnPackTo(ConcatEmbeddingsOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = min(); - if (_e) - { - _o->min.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->min[_i] = _e->Get(_i); - } - } - } - { - auto _e = max(); - if (_e) - { - _o->max.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->max[_i] = _e->Get(_i); - } - } + auto _e = num_channels(); + _o->num_channels = _e; } { - auto _e = scale(); + auto _e = num_columns_per_channel(); if (_e) { - _o->scale.resize(_e->size()); + _o->num_columns_per_channel.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { - _o->scale[_i] = _e->Get(_i); + _o->num_columns_per_channel[_i] = _e->Get(_i); } } } { - auto _e = zero_point(); + auto _e = embedding_dim_per_channel(); if (_e) { - _o->zero_point.resize(_e->size()); + _o->embedding_dim_per_channel.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { - _o->zero_point[_i] = _e->Get(_i); + _o->embedding_dim_per_channel[_i] = _e->Get(_i); } } } +} + +inline flatbuffers::Offset +ConcatEmbeddingsOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const ConcatEmbeddingsOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + return CreateConcatEmbeddingsOptions(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset +CreateConcatEmbeddingsOptions(flatbuffers::FlatBufferBuilder &_fbb, + const ConcatEmbeddingsOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + (void)_rehasher; + (void)_o; + struct _VectorArgs { - auto _e = details_type(); - _o->details.type = _e; - } - { - auto _e = details(); - if (_e) - _o->details.value = circle::QuantizationDetailsUnion::UnPack(_e, details_type(), _resolver); - } + flatbuffers::FlatBufferBuilder *__fbb; + const ConcatEmbeddingsOptionsT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _num_channels = _o->num_channels; + auto _num_columns_per_channel = + _o->num_columns_per_channel.size() ? _fbb.CreateVector(_o->num_columns_per_channel) : 0; + auto _embedding_dim_per_channel = + _o->embedding_dim_per_channel.size() ? _fbb.CreateVector(_o->embedding_dim_per_channel) : 0; + return circle::CreateConcatEmbeddingsOptions(_fbb, _num_channels, _num_columns_per_channel, + _embedding_dim_per_channel); +} + +inline LSHProjectionOptionsT * +LSHProjectionOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +{ + auto _o = std::unique_ptr(new LSHProjectionOptionsT()); + UnPackTo(_o.get(), _resolver); + return _o.release(); +} + +inline void LSHProjectionOptions::UnPackTo(LSHProjectionOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const +{ + (void)_o; + (void)_resolver; { - auto _e = quantized_dimension(); - _o->quantized_dimension = _e; + auto _e = type(); + _o->type = _e; } } -inline flatbuffers::Offset -QuantizationParameters::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const QuantizationParametersT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LSHProjectionOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LSHProjectionOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateQuantizationParameters(_fbb, _o, _rehasher); + return CreateLSHProjectionOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateQuantizationParameters(flatbuffers::FlatBufferBuilder &_fbb, - const QuantizationParametersT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLSHProjectionOptions(flatbuffers::FlatBufferBuilder &_fbb, const LSHProjectionOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const QuantizationParametersT *__o; + const LSHProjectionOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _min = _o->min.size() ? _fbb.CreateVector(_o->min) : 0; - auto _max = _o->max.size() ? _fbb.CreateVector(_o->max) : 0; - auto _scale = _o->scale.size() ? _fbb.CreateVector(_o->scale) : 0; - auto _zero_point = _o->zero_point.size() ? _fbb.CreateVector(_o->zero_point) : 0; - auto _details_type = _o->details.type; - auto _details = _o->details.Pack(_fbb); - auto _quantized_dimension = _o->quantized_dimension; - return circle::CreateQuantizationParameters(_fbb, _min, _max, _scale, _zero_point, _details_type, - _details, _quantized_dimension); + auto _type = _o->type; + return circle::CreateLSHProjectionOptions(_fbb, _type); } -inline Int32VectorT *Int32Vector::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SVDFOptionsT *SVDFOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new Int32VectorT()); + auto _o = std::unique_ptr(new SVDFOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void Int32Vector::UnPackTo(Int32VectorT *_o, +inline void SVDFOptions::UnPackTo(SVDFOptionsT *_o, const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = values(); - if (_e) - { - _o->values.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->values[_i] = _e->Get(_i); - } - } + auto _e = rank(); + _o->rank = _e; + } + { + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; + } + { + auto _e = asymmetric_quantize_inputs(); + _o->asymmetric_quantize_inputs = _e; } } -inline flatbuffers::Offset -Int32Vector::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Int32VectorT *_o, +inline flatbuffers::Offset +SVDFOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SVDFOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { - return CreateInt32Vector(_fbb, _o, _rehasher); + return CreateSVDFOptions(_fbb, _o, _rehasher); } - -inline flatbuffers::Offset -CreateInt32Vector(flatbuffers::FlatBufferBuilder &_fbb, const Int32VectorT *_o, + +inline flatbuffers::Offset +CreateSVDFOptions(flatbuffers::FlatBufferBuilder &_fbb, const SVDFOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; @@ -15214,837 +17355,674 @@ CreateInt32Vector(flatbuffers::FlatBufferBuilder &_fbb, const Int32VectorT *_o, struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const Int32VectorT *__o; + const SVDFOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _values = _o->values.size() ? _fbb.CreateVector(_o->values) : 0; - return circle::CreateInt32Vector(_fbb, _values); + auto _rank = _o->rank; + auto _fused_activation_function = _o->fused_activation_function; + auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; + return circle::CreateSVDFOptions(_fbb, _rank, _fused_activation_function, + _asymmetric_quantize_inputs); } -inline Uint16VectorT *Uint16Vector::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline RNNOptionsT *RNNOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new Uint16VectorT()); + auto _o = std::unique_ptr(new RNNOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void Uint16Vector::UnPackTo(Uint16VectorT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void RNNOptions::UnPackTo(RNNOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = values(); - if (_e) - { - _o->values.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->values[_i] = _e->Get(_i); - } - } + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; + } + { + auto _e = asymmetric_quantize_inputs(); + _o->asymmetric_quantize_inputs = _e; } } -inline flatbuffers::Offset -Uint16Vector::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Uint16VectorT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +RNNOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RNNOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateUint16Vector(_fbb, _o, _rehasher); + return CreateRNNOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateUint16Vector(flatbuffers::FlatBufferBuilder &_fbb, const Uint16VectorT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateRNNOptions(flatbuffers::FlatBufferBuilder &_fbb, const RNNOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const Uint16VectorT *__o; + const RNNOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - _fbb.ForceVectorAlignment(_o->values.size(), sizeof(uint16_t), 4); - auto _values = _o->values.size() ? _fbb.CreateVector(_o->values) : 0; - return circle::CreateUint16Vector(_fbb, _values); + auto _fused_activation_function = _o->fused_activation_function; + auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; + return circle::CreateRNNOptions(_fbb, _fused_activation_function, _asymmetric_quantize_inputs); } -inline Uint8VectorT *Uint8Vector::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SequenceRNNOptionsT * +SequenceRNNOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new Uint8VectorT()); + auto _o = std::unique_ptr(new SequenceRNNOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void Uint8Vector::UnPackTo(Uint8VectorT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SequenceRNNOptions::UnPackTo(SequenceRNNOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = values(); - if (_e) - { - _o->values.resize(_e->size()); - std::copy(_e->begin(), _e->end(), _o->values.begin()); - } + auto _e = time_major(); + _o->time_major = _e; + } + { + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; + } + { + auto _e = asymmetric_quantize_inputs(); + _o->asymmetric_quantize_inputs = _e; } } -inline flatbuffers::Offset -Uint8Vector::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Uint8VectorT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SequenceRNNOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SequenceRNNOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateUint8Vector(_fbb, _o, _rehasher); + return CreateSequenceRNNOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateUint8Vector(flatbuffers::FlatBufferBuilder &_fbb, const Uint8VectorT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSequenceRNNOptions(flatbuffers::FlatBufferBuilder &_fbb, const SequenceRNNOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const Uint8VectorT *__o; + const SequenceRNNOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - _fbb.ForceVectorAlignment(_o->values.size(), sizeof(uint8_t), 4); - auto _values = _o->values.size() ? _fbb.CreateVector(_o->values) : 0; - return circle::CreateUint8Vector(_fbb, _values); + auto _time_major = _o->time_major; + auto _fused_activation_function = _o->fused_activation_function; + auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; + return circle::CreateSequenceRNNOptions(_fbb, _time_major, _fused_activation_function, + _asymmetric_quantize_inputs); } -inline DimensionMetadataT * -DimensionMetadata::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline BidirectionalSequenceRNNOptionsT * +BidirectionalSequenceRNNOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new DimensionMetadataT()); + auto _o = + std::unique_ptr(new BidirectionalSequenceRNNOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void DimensionMetadata::UnPackTo(DimensionMetadataT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +BidirectionalSequenceRNNOptions::UnPackTo(BidirectionalSequenceRNNOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = format(); - _o->format = _e; - } - { - auto _e = dense_size(); - _o->dense_size = _e; - } - { - auto _e = array_segments_type(); - _o->array_segments.type = _e; + auto _e = time_major(); + _o->time_major = _e; } { - auto _e = array_segments(); - if (_e) - _o->array_segments.value = - circle::SparseIndexVectorUnion::UnPack(_e, array_segments_type(), _resolver); + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; } { - auto _e = array_indices_type(); - _o->array_indices.type = _e; + auto _e = merge_outputs(); + _o->merge_outputs = _e; } { - auto _e = array_indices(); - if (_e) - _o->array_indices.value = - circle::SparseIndexVectorUnion::UnPack(_e, array_indices_type(), _resolver); + auto _e = asymmetric_quantize_inputs(); + _o->asymmetric_quantize_inputs = _e; } } -inline flatbuffers::Offset -DimensionMetadata::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DimensionMetadataT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +BidirectionalSequenceRNNOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const BidirectionalSequenceRNNOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateDimensionMetadata(_fbb, _o, _rehasher); + return CreateBidirectionalSequenceRNNOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateDimensionMetadata(flatbuffers::FlatBufferBuilder &_fbb, const DimensionMetadataT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateBidirectionalSequenceRNNOptions(flatbuffers::FlatBufferBuilder &_fbb, + const BidirectionalSequenceRNNOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const DimensionMetadataT *__o; + const BidirectionalSequenceRNNOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _format = _o->format; - auto _dense_size = _o->dense_size; - auto _array_segments_type = _o->array_segments.type; - auto _array_segments = _o->array_segments.Pack(_fbb); - auto _array_indices_type = _o->array_indices.type; - auto _array_indices = _o->array_indices.Pack(_fbb); - return circle::CreateDimensionMetadata(_fbb, _format, _dense_size, _array_segments_type, - _array_segments, _array_indices_type, _array_indices); + auto _time_major = _o->time_major; + auto _fused_activation_function = _o->fused_activation_function; + auto _merge_outputs = _o->merge_outputs; + auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; + return circle::CreateBidirectionalSequenceRNNOptions( + _fbb, _time_major, _fused_activation_function, _merge_outputs, _asymmetric_quantize_inputs); } -inline SparsityParametersT * -SparsityParameters::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline FullyConnectedOptionsT * +FullyConnectedOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SparsityParametersT()); + auto _o = std::unique_ptr(new FullyConnectedOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SparsityParameters::UnPackTo(SparsityParametersT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void FullyConnectedOptions::UnPackTo(FullyConnectedOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = traversal_order(); - if (_e) - { - _o->traversal_order.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->traversal_order[_i] = _e->Get(_i); - } - } + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; } { - auto _e = block_map(); - if (_e) - { - _o->block_map.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->block_map[_i] = _e->Get(_i); - } - } + auto _e = weights_format(); + _o->weights_format = _e; } { - auto _e = dim_metadata(); - if (_e) - { - _o->dim_metadata.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->dim_metadata[_i] = - std::unique_ptr(_e->Get(_i)->UnPack(_resolver)); - } - } + auto _e = keep_num_dims(); + _o->keep_num_dims = _e; + } + { + auto _e = asymmetric_quantize_inputs(); + _o->asymmetric_quantize_inputs = _e; } } -inline flatbuffers::Offset -SparsityParameters::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SparsityParametersT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +FullyConnectedOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FullyConnectedOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSparsityParameters(_fbb, _o, _rehasher); + return CreateFullyConnectedOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSparsityParameters(flatbuffers::FlatBufferBuilder &_fbb, const SparsityParametersT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateFullyConnectedOptions(flatbuffers::FlatBufferBuilder &_fbb, const FullyConnectedOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SparsityParametersT *__o; - const flatbuffers::rehasher_function_t *__rehasher; - } _va = {&_fbb, _o, _rehasher}; - (void)_va; - auto _traversal_order = _o->traversal_order.size() ? _fbb.CreateVector(_o->traversal_order) : 0; - auto _block_map = _o->block_map.size() ? _fbb.CreateVector(_o->block_map) : 0; - auto _dim_metadata = _o->dim_metadata.size() - ? _fbb.CreateVector>( - _o->dim_metadata.size(), - [](size_t i, _VectorArgs *__va) { - return CreateDimensionMetadata( - *__va->__fbb, __va->__o->dim_metadata[i].get(), __va->__rehasher); - }, - &_va) - : 0; - return circle::CreateSparsityParameters(_fbb, _traversal_order, _block_map, _dim_metadata); + const FullyConnectedOptionsT *__o; + const flatbuffers::rehasher_function_t *__rehasher; + } _va = {&_fbb, _o, _rehasher}; + (void)_va; + auto _fused_activation_function = _o->fused_activation_function; + auto _weights_format = _o->weights_format; + auto _keep_num_dims = _o->keep_num_dims; + auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; + return circle::CreateFullyConnectedOptions(_fbb, _fused_activation_function, _weights_format, + _keep_num_dims, _asymmetric_quantize_inputs); } -inline TensorT *Tensor::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SoftmaxOptionsT * +SoftmaxOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new TensorT()); + auto _o = std::unique_ptr(new SoftmaxOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void Tensor::UnPackTo(TensorT *_o, const flatbuffers::resolver_function_t *_resolver) const +inline void SoftmaxOptions::UnPackTo(SoftmaxOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = shape(); - if (_e) - { - _o->shape.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->shape[_i] = _e->Get(_i); - } - } - } - { - auto _e = type(); - _o->type = _e; - } - { - auto _e = buffer(); - _o->buffer = _e; - } - { - auto _e = name(); - if (_e) - _o->name = _e->str(); - } - { - auto _e = quantization(); - if (_e) - _o->quantization = std::unique_ptr(_e->UnPack(_resolver)); - } - { - auto _e = is_variable(); - _o->is_variable = _e; - } - { - auto _e = sparsity(); - if (_e) - _o->sparsity = std::unique_ptr(_e->UnPack(_resolver)); - } - { - auto _e = shape_signature(); - if (_e) - { - _o->shape_signature.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->shape_signature[_i] = _e->Get(_i); - } - } + auto _e = beta(); + _o->beta = _e; } } -inline flatbuffers::Offset Tensor::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const TensorT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SoftmaxOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SoftmaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateTensor(_fbb, _o, _rehasher); + return CreateSoftmaxOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset CreateTensor(flatbuffers::FlatBufferBuilder &_fbb, - const TensorT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSoftmaxOptions(flatbuffers::FlatBufferBuilder &_fbb, const SoftmaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const TensorT *__o; + const SoftmaxOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _shape = _o->shape.size() ? _fbb.CreateVector(_o->shape) : 0; - auto _type = _o->type; - auto _buffer = _o->buffer; - auto _name = _o->name.empty() ? 0 : _fbb.CreateString(_o->name); - auto _quantization = - _o->quantization ? CreateQuantizationParameters(_fbb, _o->quantization.get(), _rehasher) : 0; - auto _is_variable = _o->is_variable; - auto _sparsity = _o->sparsity ? CreateSparsityParameters(_fbb, _o->sparsity.get(), _rehasher) : 0; - auto _shape_signature = _o->shape_signature.size() ? _fbb.CreateVector(_o->shape_signature) : 0; - return circle::CreateTensor(_fbb, _shape, _type, _buffer, _name, _quantization, _is_variable, - _sparsity, _shape_signature); + auto _beta = _o->beta; + return circle::CreateSoftmaxOptions(_fbb, _beta); } -inline Conv2DOptionsT * -Conv2DOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ConcatenationOptionsT * +ConcatenationOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new Conv2DOptionsT()); + auto _o = std::unique_ptr(new ConcatenationOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void Conv2DOptions::UnPackTo(Conv2DOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ConcatenationOptions::UnPackTo(ConcatenationOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = padding(); - _o->padding = _e; - } - { - auto _e = stride_w(); - _o->stride_w = _e; - } - { - auto _e = stride_h(); - _o->stride_h = _e; + auto _e = axis(); + _o->axis = _e; } { auto _e = fused_activation_function(); _o->fused_activation_function = _e; } - { - auto _e = dilation_w_factor(); - _o->dilation_w_factor = _e; - } - { - auto _e = dilation_h_factor(); - _o->dilation_h_factor = _e; - } } -inline flatbuffers::Offset -Conv2DOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Conv2DOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ConcatenationOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ConcatenationOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateConv2DOptions(_fbb, _o, _rehasher); + return CreateConcatenationOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateConv2DOptions(flatbuffers::FlatBufferBuilder &_fbb, const Conv2DOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateConcatenationOptions(flatbuffers::FlatBufferBuilder &_fbb, const ConcatenationOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const Conv2DOptionsT *__o; + const ConcatenationOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _padding = _o->padding; - auto _stride_w = _o->stride_w; - auto _stride_h = _o->stride_h; + auto _axis = _o->axis; auto _fused_activation_function = _o->fused_activation_function; - auto _dilation_w_factor = _o->dilation_w_factor; - auto _dilation_h_factor = _o->dilation_h_factor; - return circle::CreateConv2DOptions(_fbb, _padding, _stride_w, _stride_h, - _fused_activation_function, _dilation_w_factor, - _dilation_h_factor); + return circle::CreateConcatenationOptions(_fbb, _axis, _fused_activation_function); } -inline Conv3DOptionsT * -Conv3DOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline AddOptionsT *AddOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new Conv3DOptionsT()); + auto _o = std::unique_ptr(new AddOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void Conv3DOptions::UnPackTo(Conv3DOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void AddOptions::UnPackTo(AddOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = padding(); - _o->padding = _e; - } - { - auto _e = stride_d(); - _o->stride_d = _e; - } - { - auto _e = stride_w(); - _o->stride_w = _e; - } - { - auto _e = stride_h(); - _o->stride_h = _e; - } { auto _e = fused_activation_function(); _o->fused_activation_function = _e; } { - auto _e = dilation_d_factor(); - _o->dilation_d_factor = _e; - } - { - auto _e = dilation_w_factor(); - _o->dilation_w_factor = _e; - } - { - auto _e = dilation_h_factor(); - _o->dilation_h_factor = _e; + auto _e = pot_scale_int16(); + _o->pot_scale_int16 = _e; } } -inline flatbuffers::Offset -Conv3DOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Conv3DOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +AddOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AddOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateConv3DOptions(_fbb, _o, _rehasher); + return CreateAddOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateConv3DOptions(flatbuffers::FlatBufferBuilder &_fbb, const Conv3DOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateAddOptions(flatbuffers::FlatBufferBuilder &_fbb, const AddOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const Conv3DOptionsT *__o; + const AddOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _padding = _o->padding; - auto _stride_d = _o->stride_d; - auto _stride_w = _o->stride_w; - auto _stride_h = _o->stride_h; auto _fused_activation_function = _o->fused_activation_function; - auto _dilation_d_factor = _o->dilation_d_factor; - auto _dilation_w_factor = _o->dilation_w_factor; - auto _dilation_h_factor = _o->dilation_h_factor; - return circle::CreateConv3DOptions(_fbb, _padding, _stride_d, _stride_w, _stride_h, - _fused_activation_function, _dilation_d_factor, - _dilation_w_factor, _dilation_h_factor); + auto _pot_scale_int16 = _o->pot_scale_int16; + return circle::CreateAddOptions(_fbb, _fused_activation_function, _pot_scale_int16); } -inline Pool2DOptionsT * -Pool2DOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline MulOptionsT *MulOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new Pool2DOptionsT()); + auto _o = std::unique_ptr(new MulOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void Pool2DOptions::UnPackTo(Pool2DOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void MulOptions::UnPackTo(MulOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = padding(); - _o->padding = _e; - } - { - auto _e = stride_w(); - _o->stride_w = _e; - } - { - auto _e = stride_h(); - _o->stride_h = _e; - } - { - auto _e = filter_width(); - _o->filter_width = _e; - } - { - auto _e = filter_height(); - _o->filter_height = _e; - } { auto _e = fused_activation_function(); _o->fused_activation_function = _e; } } -inline flatbuffers::Offset -Pool2DOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Pool2DOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +MulOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MulOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreatePool2DOptions(_fbb, _o, _rehasher); + return CreateMulOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreatePool2DOptions(flatbuffers::FlatBufferBuilder &_fbb, const Pool2DOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateMulOptions(flatbuffers::FlatBufferBuilder &_fbb, const MulOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const Pool2DOptionsT *__o; + const MulOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _padding = _o->padding; - auto _stride_w = _o->stride_w; - auto _stride_h = _o->stride_h; - auto _filter_width = _o->filter_width; - auto _filter_height = _o->filter_height; auto _fused_activation_function = _o->fused_activation_function; - return circle::CreatePool2DOptions(_fbb, _padding, _stride_w, _stride_h, _filter_width, - _filter_height, _fused_activation_function); + return circle::CreateMulOptions(_fbb, _fused_activation_function); } -inline DepthwiseConv2DOptionsT * -DepthwiseConv2DOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline L2NormOptionsT * +L2NormOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new DepthwiseConv2DOptionsT()); + auto _o = std::unique_ptr(new L2NormOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -DepthwiseConv2DOptions::UnPackTo(DepthwiseConv2DOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void L2NormOptions::UnPackTo(L2NormOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = padding(); - _o->padding = _e; - } - { - auto _e = stride_w(); - _o->stride_w = _e; - } - { - auto _e = stride_h(); - _o->stride_h = _e; - } - { - auto _e = depth_multiplier(); - _o->depth_multiplier = _e; - } { auto _e = fused_activation_function(); _o->fused_activation_function = _e; } - { - auto _e = dilation_w_factor(); - _o->dilation_w_factor = _e; - } - { - auto _e = dilation_h_factor(); - _o->dilation_h_factor = _e; - } } -inline flatbuffers::Offset -DepthwiseConv2DOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const DepthwiseConv2DOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +L2NormOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const L2NormOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateDepthwiseConv2DOptions(_fbb, _o, _rehasher); + return CreateL2NormOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateDepthwiseConv2DOptions(flatbuffers::FlatBufferBuilder &_fbb, - const DepthwiseConv2DOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateL2NormOptions(flatbuffers::FlatBufferBuilder &_fbb, const L2NormOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const DepthwiseConv2DOptionsT *__o; + const L2NormOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _padding = _o->padding; - auto _stride_w = _o->stride_w; - auto _stride_h = _o->stride_h; - auto _depth_multiplier = _o->depth_multiplier; auto _fused_activation_function = _o->fused_activation_function; - auto _dilation_w_factor = _o->dilation_w_factor; - auto _dilation_h_factor = _o->dilation_h_factor; - return circle::CreateDepthwiseConv2DOptions(_fbb, _padding, _stride_w, _stride_h, - _depth_multiplier, _fused_activation_function, - _dilation_w_factor, _dilation_h_factor); + return circle::CreateL2NormOptions(_fbb, _fused_activation_function); } -inline ConcatEmbeddingsOptionsT * -ConcatEmbeddingsOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LocalResponseNormalizationOptionsT * +LocalResponseNormalizationOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ConcatEmbeddingsOptionsT()); + auto _o = + std::unique_ptr(new LocalResponseNormalizationOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } inline void -ConcatEmbeddingsOptions::UnPackTo(ConcatEmbeddingsOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +LocalResponseNormalizationOptions::UnPackTo(LocalResponseNormalizationOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = num_channels(); - _o->num_channels = _e; + auto _e = radius(); + _o->radius = _e; } { - auto _e = num_columns_per_channel(); - if (_e) - { - _o->num_columns_per_channel.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->num_columns_per_channel[_i] = _e->Get(_i); - } - } + auto _e = bias(); + _o->bias = _e; } { - auto _e = embedding_dim_per_channel(); - if (_e) - { - _o->embedding_dim_per_channel.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->embedding_dim_per_channel[_i] = _e->Get(_i); - } - } + auto _e = alpha(); + _o->alpha = _e; + } + { + auto _e = beta(); + _o->beta = _e; } } -inline flatbuffers::Offset -ConcatEmbeddingsOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const ConcatEmbeddingsOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LocalResponseNormalizationOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const LocalResponseNormalizationOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateConcatEmbeddingsOptions(_fbb, _o, _rehasher); + return CreateLocalResponseNormalizationOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateConcatEmbeddingsOptions(flatbuffers::FlatBufferBuilder &_fbb, - const ConcatEmbeddingsOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLocalResponseNormalizationOptions(flatbuffers::FlatBufferBuilder &_fbb, + const LocalResponseNormalizationOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ConcatEmbeddingsOptionsT *__o; + const LocalResponseNormalizationOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _num_channels = _o->num_channels; - auto _num_columns_per_channel = - _o->num_columns_per_channel.size() ? _fbb.CreateVector(_o->num_columns_per_channel) : 0; - auto _embedding_dim_per_channel = - _o->embedding_dim_per_channel.size() ? _fbb.CreateVector(_o->embedding_dim_per_channel) : 0; - return circle::CreateConcatEmbeddingsOptions(_fbb, _num_channels, _num_columns_per_channel, - _embedding_dim_per_channel); + auto _radius = _o->radius; + auto _bias = _o->bias; + auto _alpha = _o->alpha; + auto _beta = _o->beta; + return circle::CreateLocalResponseNormalizationOptions(_fbb, _radius, _bias, _alpha, _beta); } -inline LSHProjectionOptionsT * -LSHProjectionOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LSTMOptionsT *LSTMOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LSHProjectionOptionsT()); + auto _o = std::unique_ptr(new LSTMOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LSHProjectionOptions::UnPackTo(LSHProjectionOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void LSTMOptions::UnPackTo(LSTMOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = type(); - _o->type = _e; + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; + } + { + auto _e = cell_clip(); + _o->cell_clip = _e; + } + { + auto _e = proj_clip(); + _o->proj_clip = _e; + } + { + auto _e = kernel_type(); + _o->kernel_type = _e; + } + { + auto _e = asymmetric_quantize_inputs(); + _o->asymmetric_quantize_inputs = _e; } } -inline flatbuffers::Offset -LSHProjectionOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LSHProjectionOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LSTMOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LSTMOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLSHProjectionOptions(_fbb, _o, _rehasher); + return CreateLSTMOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLSHProjectionOptions(flatbuffers::FlatBufferBuilder &_fbb, const LSHProjectionOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLSTMOptions(flatbuffers::FlatBufferBuilder &_fbb, const LSTMOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LSHProjectionOptionsT *__o; + const LSTMOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _type = _o->type; - return circle::CreateLSHProjectionOptions(_fbb, _type); + auto _fused_activation_function = _o->fused_activation_function; + auto _cell_clip = _o->cell_clip; + auto _proj_clip = _o->proj_clip; + auto _kernel_type = _o->kernel_type; + auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; + return circle::CreateLSTMOptions(_fbb, _fused_activation_function, _cell_clip, _proj_clip, + _kernel_type, _asymmetric_quantize_inputs); } -inline SVDFOptionsT *SVDFOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline UnidirectionalSequenceLSTMOptionsT * +UnidirectionalSequenceLSTMOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SVDFOptionsT()); + auto _o = + std::unique_ptr(new UnidirectionalSequenceLSTMOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SVDFOptions::UnPackTo(SVDFOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +UnidirectionalSequenceLSTMOptions::UnPackTo(UnidirectionalSequenceLSTMOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = rank(); - _o->rank = _e; - } { auto _e = fused_activation_function(); _o->fused_activation_function = _e; } + { + auto _e = cell_clip(); + _o->cell_clip = _e; + } + { + auto _e = proj_clip(); + _o->proj_clip = _e; + } + { + auto _e = time_major(); + _o->time_major = _e; + } { auto _e = asymmetric_quantize_inputs(); _o->asymmetric_quantize_inputs = _e; } + { + auto _e = diagonal_recurrent_tensors(); + _o->diagonal_recurrent_tensors = _e; + } } -inline flatbuffers::Offset -SVDFOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SVDFOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +UnidirectionalSequenceLSTMOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const UnidirectionalSequenceLSTMOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSVDFOptions(_fbb, _o, _rehasher); + return CreateUnidirectionalSequenceLSTMOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSVDFOptions(flatbuffers::FlatBufferBuilder &_fbb, const SVDFOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateUnidirectionalSequenceLSTMOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnidirectionalSequenceLSTMOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SVDFOptionsT *__o; + const UnidirectionalSequenceLSTMOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _rank = _o->rank; auto _fused_activation_function = _o->fused_activation_function; + auto _cell_clip = _o->cell_clip; + auto _proj_clip = _o->proj_clip; + auto _time_major = _o->time_major; auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateSVDFOptions(_fbb, _rank, _fused_activation_function, - _asymmetric_quantize_inputs); + auto _diagonal_recurrent_tensors = _o->diagonal_recurrent_tensors; + return circle::CreateUnidirectionalSequenceLSTMOptions( + _fbb, _fused_activation_function, _cell_clip, _proj_clip, _time_major, + _asymmetric_quantize_inputs, _diagonal_recurrent_tensors); } -inline RNNOptionsT *RNNOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline BidirectionalSequenceLSTMOptionsT * +BidirectionalSequenceLSTMOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new RNNOptionsT()); + auto _o = + std::unique_ptr(new BidirectionalSequenceLSTMOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void RNNOptions::UnPackTo(RNNOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +BidirectionalSequenceLSTMOptions::UnPackTo(BidirectionalSequenceLSTMOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; @@ -16052,642 +18030,550 @@ inline void RNNOptions::UnPackTo(RNNOptionsT *_o, auto _e = fused_activation_function(); _o->fused_activation_function = _e; } + { + auto _e = cell_clip(); + _o->cell_clip = _e; + } + { + auto _e = proj_clip(); + _o->proj_clip = _e; + } + { + auto _e = merge_outputs(); + _o->merge_outputs = _e; + } + { + auto _e = time_major(); + _o->time_major = _e; + } { auto _e = asymmetric_quantize_inputs(); _o->asymmetric_quantize_inputs = _e; } } -inline flatbuffers::Offset -RNNOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RNNOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +BidirectionalSequenceLSTMOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const BidirectionalSequenceLSTMOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateRNNOptions(_fbb, _o, _rehasher); + return CreateBidirectionalSequenceLSTMOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateRNNOptions(flatbuffers::FlatBufferBuilder &_fbb, const RNNOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateBidirectionalSequenceLSTMOptions(flatbuffers::FlatBufferBuilder &_fbb, + const BidirectionalSequenceLSTMOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const RNNOptionsT *__o; + const BidirectionalSequenceLSTMOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; auto _fused_activation_function = _o->fused_activation_function; + auto _cell_clip = _o->cell_clip; + auto _proj_clip = _o->proj_clip; + auto _merge_outputs = _o->merge_outputs; + auto _time_major = _o->time_major; auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateRNNOptions(_fbb, _fused_activation_function, _asymmetric_quantize_inputs); + return circle::CreateBidirectionalSequenceLSTMOptions(_fbb, _fused_activation_function, + _cell_clip, _proj_clip, _merge_outputs, + _time_major, _asymmetric_quantize_inputs); } -inline SequenceRNNOptionsT * -SequenceRNNOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ResizeBilinearOptionsT * +ResizeBilinearOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SequenceRNNOptionsT()); + auto _o = std::unique_ptr(new ResizeBilinearOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SequenceRNNOptions::UnPackTo(SequenceRNNOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ResizeBilinearOptions::UnPackTo(ResizeBilinearOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = time_major(); - _o->time_major = _e; - } - { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; + auto _e = align_corners(); + _o->align_corners = _e; } { - auto _e = asymmetric_quantize_inputs(); - _o->asymmetric_quantize_inputs = _e; + auto _e = half_pixel_centers(); + _o->half_pixel_centers = _e; } } -inline flatbuffers::Offset -SequenceRNNOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SequenceRNNOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ResizeBilinearOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ResizeBilinearOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSequenceRNNOptions(_fbb, _o, _rehasher); + return CreateResizeBilinearOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSequenceRNNOptions(flatbuffers::FlatBufferBuilder &_fbb, const SequenceRNNOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateResizeBilinearOptions(flatbuffers::FlatBufferBuilder &_fbb, const ResizeBilinearOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SequenceRNNOptionsT *__o; + const ResizeBilinearOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _time_major = _o->time_major; - auto _fused_activation_function = _o->fused_activation_function; - auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateSequenceRNNOptions(_fbb, _time_major, _fused_activation_function, - _asymmetric_quantize_inputs); + auto _align_corners = _o->align_corners; + auto _half_pixel_centers = _o->half_pixel_centers; + return circle::CreateResizeBilinearOptions(_fbb, _align_corners, _half_pixel_centers); } -inline BidirectionalSequenceRNNOptionsT * -BidirectionalSequenceRNNOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ResizeNearestNeighborOptionsT * +ResizeNearestNeighborOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = - std::unique_ptr(new BidirectionalSequenceRNNOptionsT()); + auto _o = std::unique_ptr(new ResizeNearestNeighborOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } inline void -BidirectionalSequenceRNNOptions::UnPackTo(BidirectionalSequenceRNNOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +ResizeNearestNeighborOptions::UnPackTo(ResizeNearestNeighborOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = time_major(); - _o->time_major = _e; - } - { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } - { - auto _e = merge_outputs(); - _o->merge_outputs = _e; + auto _e = align_corners(); + _o->align_corners = _e; } { - auto _e = asymmetric_quantize_inputs(); - _o->asymmetric_quantize_inputs = _e; + auto _e = half_pixel_centers(); + _o->half_pixel_centers = _e; } } -inline flatbuffers::Offset -BidirectionalSequenceRNNOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const BidirectionalSequenceRNNOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ResizeNearestNeighborOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const ResizeNearestNeighborOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateBidirectionalSequenceRNNOptions(_fbb, _o, _rehasher); + return CreateResizeNearestNeighborOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateBidirectionalSequenceRNNOptions(flatbuffers::FlatBufferBuilder &_fbb, - const BidirectionalSequenceRNNOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateResizeNearestNeighborOptions(flatbuffers::FlatBufferBuilder &_fbb, + const ResizeNearestNeighborOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const BidirectionalSequenceRNNOptionsT *__o; + const ResizeNearestNeighborOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _time_major = _o->time_major; - auto _fused_activation_function = _o->fused_activation_function; - auto _merge_outputs = _o->merge_outputs; - auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateBidirectionalSequenceRNNOptions( - _fbb, _time_major, _fused_activation_function, _merge_outputs, _asymmetric_quantize_inputs); + auto _align_corners = _o->align_corners; + auto _half_pixel_centers = _o->half_pixel_centers; + return circle::CreateResizeNearestNeighborOptions(_fbb, _align_corners, _half_pixel_centers); } -inline FullyConnectedOptionsT * -FullyConnectedOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline CallOptionsT *CallOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new FullyConnectedOptionsT()); + auto _o = std::unique_ptr(new CallOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void FullyConnectedOptions::UnPackTo(FullyConnectedOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void CallOptions::UnPackTo(CallOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } - { - auto _e = weights_format(); - _o->weights_format = _e; - } - { - auto _e = keep_num_dims(); - _o->keep_num_dims = _e; - } - { - auto _e = asymmetric_quantize_inputs(); - _o->asymmetric_quantize_inputs = _e; + auto _e = subgraph(); + _o->subgraph = _e; } } -inline flatbuffers::Offset -FullyConnectedOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FullyConnectedOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CallOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CallOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateFullyConnectedOptions(_fbb, _o, _rehasher); + return CreateCallOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateFullyConnectedOptions(flatbuffers::FlatBufferBuilder &_fbb, const FullyConnectedOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateCallOptions(flatbuffers::FlatBufferBuilder &_fbb, const CallOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const FullyConnectedOptionsT *__o; + const CallOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _fused_activation_function = _o->fused_activation_function; - auto _weights_format = _o->weights_format; - auto _keep_num_dims = _o->keep_num_dims; - auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateFullyConnectedOptions(_fbb, _fused_activation_function, _weights_format, - _keep_num_dims, _asymmetric_quantize_inputs); + auto _subgraph = _o->subgraph; + return circle::CreateCallOptions(_fbb, _subgraph); } -inline SoftmaxOptionsT * -SoftmaxOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline PadOptionsT *PadOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SoftmaxOptionsT()); + auto _o = std::unique_ptr(new PadOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SoftmaxOptions::UnPackTo(SoftmaxOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void PadOptions::UnPackTo(PadOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = beta(); - _o->beta = _e; - } } -inline flatbuffers::Offset -SoftmaxOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SoftmaxOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +PadOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PadOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSoftmaxOptions(_fbb, _o, _rehasher); + return CreatePadOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSoftmaxOptions(flatbuffers::FlatBufferBuilder &_fbb, const SoftmaxOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreatePadOptions(flatbuffers::FlatBufferBuilder &_fbb, const PadOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SoftmaxOptionsT *__o; + const PadOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _beta = _o->beta; - return circle::CreateSoftmaxOptions(_fbb, _beta); + return circle::CreatePadOptions(_fbb); } -inline ConcatenationOptionsT * -ConcatenationOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline PadV2OptionsT *PadV2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ConcatenationOptionsT()); + auto _o = std::unique_ptr(new PadV2OptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ConcatenationOptions::UnPackTo(ConcatenationOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const -{ - (void)_o; - (void)_resolver; - { - auto _e = axis(); - _o->axis = _e; - } - { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } -} - -inline flatbuffers::Offset -ConcatenationOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ConcatenationOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline void PadV2Options::UnPackTo(PadV2OptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { - return CreateConcatenationOptions(_fbb, _o, _rehasher); + (void)_o; + (void)_resolver; } -inline flatbuffers::Offset -CreateConcatenationOptions(flatbuffers::FlatBufferBuilder &_fbb, const ConcatenationOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +PadV2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PadV2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) +{ + return CreatePadV2Options(_fbb, _o, _rehasher); +} + +inline flatbuffers::Offset +CreatePadV2Options(flatbuffers::FlatBufferBuilder &_fbb, const PadV2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ConcatenationOptionsT *__o; + const PadV2OptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _axis = _o->axis; - auto _fused_activation_function = _o->fused_activation_function; - return circle::CreateConcatenationOptions(_fbb, _axis, _fused_activation_function); + return circle::CreatePadV2Options(_fbb); } -inline AddOptionsT *AddOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ReshapeOptionsT * +ReshapeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new AddOptionsT()); + auto _o = std::unique_ptr(new ReshapeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void AddOptions::UnPackTo(AddOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ReshapeOptions::UnPackTo(ReshapeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } - { - auto _e = pot_scale_int16(); - _o->pot_scale_int16 = _e; + auto _e = new_shape(); + if (_e) + { + _o->new_shape.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->new_shape[_i] = _e->Get(_i); + } + } } } -inline flatbuffers::Offset -AddOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AddOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ReshapeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ReshapeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateAddOptions(_fbb, _o, _rehasher); + return CreateReshapeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateAddOptions(flatbuffers::FlatBufferBuilder &_fbb, const AddOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateReshapeOptions(flatbuffers::FlatBufferBuilder &_fbb, const ReshapeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const AddOptionsT *__o; + const ReshapeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _fused_activation_function = _o->fused_activation_function; - auto _pot_scale_int16 = _o->pot_scale_int16; - return circle::CreateAddOptions(_fbb, _fused_activation_function, _pot_scale_int16); + auto _new_shape = _o->new_shape.size() ? _fbb.CreateVector(_o->new_shape) : 0; + return circle::CreateReshapeOptions(_fbb, _new_shape); } -inline MulOptionsT *MulOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SpaceToBatchNDOptionsT * +SpaceToBatchNDOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new MulOptionsT()); + auto _o = std::unique_ptr(new SpaceToBatchNDOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void MulOptions::UnPackTo(MulOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SpaceToBatchNDOptions::UnPackTo(SpaceToBatchNDOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } } -inline flatbuffers::Offset -MulOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MulOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SpaceToBatchNDOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SpaceToBatchNDOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateMulOptions(_fbb, _o, _rehasher); + return CreateSpaceToBatchNDOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateMulOptions(flatbuffers::FlatBufferBuilder &_fbb, const MulOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSpaceToBatchNDOptions(flatbuffers::FlatBufferBuilder &_fbb, const SpaceToBatchNDOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const MulOptionsT *__o; + const SpaceToBatchNDOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _fused_activation_function = _o->fused_activation_function; - return circle::CreateMulOptions(_fbb, _fused_activation_function); + return circle::CreateSpaceToBatchNDOptions(_fbb); } -inline L2NormOptionsT * -L2NormOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline BatchToSpaceNDOptionsT * +BatchToSpaceNDOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new L2NormOptionsT()); + auto _o = std::unique_ptr(new BatchToSpaceNDOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void L2NormOptions::UnPackTo(L2NormOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void BatchToSpaceNDOptions::UnPackTo(BatchToSpaceNDOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } } -inline flatbuffers::Offset -L2NormOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const L2NormOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +BatchToSpaceNDOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BatchToSpaceNDOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateL2NormOptions(_fbb, _o, _rehasher); + return CreateBatchToSpaceNDOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateL2NormOptions(flatbuffers::FlatBufferBuilder &_fbb, const L2NormOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateBatchToSpaceNDOptions(flatbuffers::FlatBufferBuilder &_fbb, const BatchToSpaceNDOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const L2NormOptionsT *__o; + const BatchToSpaceNDOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _fused_activation_function = _o->fused_activation_function; - return circle::CreateL2NormOptions(_fbb, _fused_activation_function); + return circle::CreateBatchToSpaceNDOptions(_fbb); } -inline LocalResponseNormalizationOptionsT * -LocalResponseNormalizationOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SkipGramOptionsT * +SkipGramOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = - std::unique_ptr(new LocalResponseNormalizationOptionsT()); + auto _o = std::unique_ptr(new SkipGramOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -LocalResponseNormalizationOptions::UnPackTo(LocalResponseNormalizationOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SkipGramOptions::UnPackTo(SkipGramOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = radius(); - _o->radius = _e; - } - { - auto _e = bias(); - _o->bias = _e; + auto _e = ngram_size(); + _o->ngram_size = _e; } { - auto _e = alpha(); - _o->alpha = _e; + auto _e = max_skip_size(); + _o->max_skip_size = _e; } { - auto _e = beta(); - _o->beta = _e; + auto _e = include_all_ngrams(); + _o->include_all_ngrams = _e; } } -inline flatbuffers::Offset -LocalResponseNormalizationOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const LocalResponseNormalizationOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SkipGramOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SkipGramOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLocalResponseNormalizationOptions(_fbb, _o, _rehasher); + return CreateSkipGramOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLocalResponseNormalizationOptions(flatbuffers::FlatBufferBuilder &_fbb, - const LocalResponseNormalizationOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSkipGramOptions(flatbuffers::FlatBufferBuilder &_fbb, const SkipGramOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LocalResponseNormalizationOptionsT *__o; + const SkipGramOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _radius = _o->radius; - auto _bias = _o->bias; - auto _alpha = _o->alpha; - auto _beta = _o->beta; - return circle::CreateLocalResponseNormalizationOptions(_fbb, _radius, _bias, _alpha, _beta); + auto _ngram_size = _o->ngram_size; + auto _max_skip_size = _o->max_skip_size; + auto _include_all_ngrams = _o->include_all_ngrams; + return circle::CreateSkipGramOptions(_fbb, _ngram_size, _max_skip_size, _include_all_ngrams); } -inline LSTMOptionsT *LSTMOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SpaceToDepthOptionsT * +SpaceToDepthOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LSTMOptionsT()); + auto _o = std::unique_ptr(new SpaceToDepthOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LSTMOptions::UnPackTo(LSTMOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SpaceToDepthOptions::UnPackTo(SpaceToDepthOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } - { - auto _e = cell_clip(); - _o->cell_clip = _e; - } - { - auto _e = proj_clip(); - _o->proj_clip = _e; - } - { - auto _e = kernel_type(); - _o->kernel_type = _e; - } - { - auto _e = asymmetric_quantize_inputs(); - _o->asymmetric_quantize_inputs = _e; + auto _e = block_size(); + _o->block_size = _e; } } -inline flatbuffers::Offset -LSTMOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LSTMOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SpaceToDepthOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SpaceToDepthOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLSTMOptions(_fbb, _o, _rehasher); + return CreateSpaceToDepthOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLSTMOptions(flatbuffers::FlatBufferBuilder &_fbb, const LSTMOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSpaceToDepthOptions(flatbuffers::FlatBufferBuilder &_fbb, const SpaceToDepthOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LSTMOptionsT *__o; + const SpaceToDepthOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _fused_activation_function = _o->fused_activation_function; - auto _cell_clip = _o->cell_clip; - auto _proj_clip = _o->proj_clip; - auto _kernel_type = _o->kernel_type; - auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateLSTMOptions(_fbb, _fused_activation_function, _cell_clip, _proj_clip, - _kernel_type, _asymmetric_quantize_inputs); + auto _block_size = _o->block_size; + return circle::CreateSpaceToDepthOptions(_fbb, _block_size); } -inline UnidirectionalSequenceLSTMOptionsT * -UnidirectionalSequenceLSTMOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline DepthToSpaceOptionsT * +DepthToSpaceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = - std::unique_ptr(new UnidirectionalSequenceLSTMOptionsT()); + auto _o = std::unique_ptr(new DepthToSpaceOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -UnidirectionalSequenceLSTMOptions::UnPackTo(UnidirectionalSequenceLSTMOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void DepthToSpaceOptions::UnPackTo(DepthToSpaceOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } - { - auto _e = cell_clip(); - _o->cell_clip = _e; - } - { - auto _e = proj_clip(); - _o->proj_clip = _e; - } - { - auto _e = time_major(); - _o->time_major = _e; - } - { - auto _e = asymmetric_quantize_inputs(); - _o->asymmetric_quantize_inputs = _e; + auto _e = block_size(); + _o->block_size = _e; } } -inline flatbuffers::Offset -UnidirectionalSequenceLSTMOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const UnidirectionalSequenceLSTMOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +DepthToSpaceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DepthToSpaceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateUnidirectionalSequenceLSTMOptions(_fbb, _o, _rehasher); + return CreateDepthToSpaceOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateUnidirectionalSequenceLSTMOptions(flatbuffers::FlatBufferBuilder &_fbb, - const UnidirectionalSequenceLSTMOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateDepthToSpaceOptions(flatbuffers::FlatBufferBuilder &_fbb, const DepthToSpaceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const UnidirectionalSequenceLSTMOptionsT *__o; + const DepthToSpaceOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _fused_activation_function = _o->fused_activation_function; - auto _cell_clip = _o->cell_clip; - auto _proj_clip = _o->proj_clip; - auto _time_major = _o->time_major; - auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateUnidirectionalSequenceLSTMOptions(_fbb, _fused_activation_function, - _cell_clip, _proj_clip, _time_major, - _asymmetric_quantize_inputs); + auto _block_size = _o->block_size; + return circle::CreateDepthToSpaceOptions(_fbb, _block_size); } -inline BidirectionalSequenceLSTMOptionsT * -BidirectionalSequenceLSTMOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SubOptionsT *SubOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = - std::unique_ptr(new BidirectionalSequenceLSTMOptionsT()); + auto _o = std::unique_ptr(new SubOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -BidirectionalSequenceLSTMOptions::UnPackTo(BidirectionalSequenceLSTMOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SubOptions::UnPackTo(SubOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; @@ -16696,901 +18582,872 @@ BidirectionalSequenceLSTMOptions::UnPackTo(BidirectionalSequenceLSTMOptionsT *_o _o->fused_activation_function = _e; } { - auto _e = cell_clip(); - _o->cell_clip = _e; - } - { - auto _e = proj_clip(); - _o->proj_clip = _e; - } - { - auto _e = merge_outputs(); - _o->merge_outputs = _e; - } - { - auto _e = time_major(); - _o->time_major = _e; - } - { - auto _e = asymmetric_quantize_inputs(); - _o->asymmetric_quantize_inputs = _e; + auto _e = pot_scale_int16(); + _o->pot_scale_int16 = _e; } } -inline flatbuffers::Offset -BidirectionalSequenceLSTMOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const BidirectionalSequenceLSTMOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SubOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SubOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateBidirectionalSequenceLSTMOptions(_fbb, _o, _rehasher); + return CreateSubOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateBidirectionalSequenceLSTMOptions(flatbuffers::FlatBufferBuilder &_fbb, - const BidirectionalSequenceLSTMOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSubOptions(flatbuffers::FlatBufferBuilder &_fbb, const SubOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const BidirectionalSequenceLSTMOptionsT *__o; + const SubOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; auto _fused_activation_function = _o->fused_activation_function; - auto _cell_clip = _o->cell_clip; - auto _proj_clip = _o->proj_clip; - auto _merge_outputs = _o->merge_outputs; - auto _time_major = _o->time_major; - auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateBidirectionalSequenceLSTMOptions(_fbb, _fused_activation_function, - _cell_clip, _proj_clip, _merge_outputs, - _time_major, _asymmetric_quantize_inputs); + auto _pot_scale_int16 = _o->pot_scale_int16; + return circle::CreateSubOptions(_fbb, _fused_activation_function, _pot_scale_int16); } -inline ResizeBilinearOptionsT * -ResizeBilinearOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline DivOptionsT *DivOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ResizeBilinearOptionsT()); + auto _o = std::unique_ptr(new DivOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ResizeBilinearOptions::UnPackTo(ResizeBilinearOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void DivOptions::UnPackTo(DivOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = align_corners(); - _o->align_corners = _e; - } - { - auto _e = half_pixel_centers(); - _o->half_pixel_centers = _e; + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; } } -inline flatbuffers::Offset -ResizeBilinearOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ResizeBilinearOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +DivOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DivOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateResizeBilinearOptions(_fbb, _o, _rehasher); + return CreateDivOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateResizeBilinearOptions(flatbuffers::FlatBufferBuilder &_fbb, const ResizeBilinearOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateDivOptions(flatbuffers::FlatBufferBuilder &_fbb, const DivOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ResizeBilinearOptionsT *__o; + const DivOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _align_corners = _o->align_corners; - auto _half_pixel_centers = _o->half_pixel_centers; - return circle::CreateResizeBilinearOptions(_fbb, _align_corners, _half_pixel_centers); + auto _fused_activation_function = _o->fused_activation_function; + return circle::CreateDivOptions(_fbb, _fused_activation_function); } -inline ResizeNearestNeighborOptionsT * -ResizeNearestNeighborOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline TopKV2OptionsT * +TopKV2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ResizeNearestNeighborOptionsT()); + auto _o = std::unique_ptr(new TopKV2OptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -ResizeNearestNeighborOptions::UnPackTo(ResizeNearestNeighborOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void TopKV2Options::UnPackTo(TopKV2OptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = align_corners(); - _o->align_corners = _e; - } - { - auto _e = half_pixel_centers(); - _o->half_pixel_centers = _e; - } } -inline flatbuffers::Offset -ResizeNearestNeighborOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const ResizeNearestNeighborOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +TopKV2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TopKV2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateResizeNearestNeighborOptions(_fbb, _o, _rehasher); + return CreateTopKV2Options(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateResizeNearestNeighborOptions(flatbuffers::FlatBufferBuilder &_fbb, - const ResizeNearestNeighborOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateTopKV2Options(flatbuffers::FlatBufferBuilder &_fbb, const TopKV2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ResizeNearestNeighborOptionsT *__o; + const TopKV2OptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _align_corners = _o->align_corners; - auto _half_pixel_centers = _o->half_pixel_centers; - return circle::CreateResizeNearestNeighborOptions(_fbb, _align_corners, _half_pixel_centers); + return circle::CreateTopKV2Options(_fbb); } -inline CallOptionsT *CallOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline EmbeddingLookupSparseOptionsT * +EmbeddingLookupSparseOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new CallOptionsT()); + auto _o = std::unique_ptr(new EmbeddingLookupSparseOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void CallOptions::UnPackTo(CallOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +EmbeddingLookupSparseOptions::UnPackTo(EmbeddingLookupSparseOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = subgraph(); - _o->subgraph = _e; + auto _e = combiner(); + _o->combiner = _e; } } -inline flatbuffers::Offset -CallOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CallOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +EmbeddingLookupSparseOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const EmbeddingLookupSparseOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateCallOptions(_fbb, _o, _rehasher); + return CreateEmbeddingLookupSparseOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateCallOptions(flatbuffers::FlatBufferBuilder &_fbb, const CallOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateEmbeddingLookupSparseOptions(flatbuffers::FlatBufferBuilder &_fbb, + const EmbeddingLookupSparseOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const CallOptionsT *__o; + const EmbeddingLookupSparseOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _subgraph = _o->subgraph; - return circle::CreateCallOptions(_fbb, _subgraph); + auto _combiner = _o->combiner; + return circle::CreateEmbeddingLookupSparseOptions(_fbb, _combiner); } -inline PadOptionsT *PadOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline GatherOptionsT * +GatherOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new PadOptionsT()); + auto _o = std::unique_ptr(new GatherOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void PadOptions::UnPackTo(PadOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void GatherOptions::UnPackTo(GatherOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = axis(); + _o->axis = _e; + } + { + auto _e = batch_dims(); + _o->batch_dims = _e; + } } -inline flatbuffers::Offset -PadOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PadOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +GatherOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GatherOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreatePadOptions(_fbb, _o, _rehasher); + return CreateGatherOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreatePadOptions(flatbuffers::FlatBufferBuilder &_fbb, const PadOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateGatherOptions(flatbuffers::FlatBufferBuilder &_fbb, const GatherOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const PadOptionsT *__o; + const GatherOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreatePadOptions(_fbb); + auto _axis = _o->axis; + auto _batch_dims = _o->batch_dims; + return circle::CreateGatherOptions(_fbb, _axis, _batch_dims); } -inline PadV2OptionsT *PadV2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline TransposeOptionsT * +TransposeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new PadV2OptionsT()); + auto _o = std::unique_ptr(new TransposeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void PadV2Options::UnPackTo(PadV2OptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void TransposeOptions::UnPackTo(TransposeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -PadV2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PadV2OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +TransposeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TransposeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreatePadV2Options(_fbb, _o, _rehasher); + return CreateTransposeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreatePadV2Options(flatbuffers::FlatBufferBuilder &_fbb, const PadV2OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateTransposeOptions(flatbuffers::FlatBufferBuilder &_fbb, const TransposeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const PadV2OptionsT *__o; + const TransposeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreatePadV2Options(_fbb); + return circle::CreateTransposeOptions(_fbb); } -inline ReshapeOptionsT * -ReshapeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ExpOptionsT *ExpOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ReshapeOptionsT()); + auto _o = std::unique_ptr(new ExpOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ReshapeOptions::UnPackTo(ReshapeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ExpOptions::UnPackTo(ExpOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = new_shape(); - if (_e) - { - _o->new_shape.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->new_shape[_i] = _e->Get(_i); - } - } - } } -inline flatbuffers::Offset -ReshapeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ReshapeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ExpOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ExpOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateReshapeOptions(_fbb, _o, _rehasher); + return CreateExpOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateReshapeOptions(flatbuffers::FlatBufferBuilder &_fbb, const ReshapeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateExpOptions(flatbuffers::FlatBufferBuilder &_fbb, const ExpOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ReshapeOptionsT *__o; + const ExpOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _new_shape = _o->new_shape.size() ? _fbb.CreateVector(_o->new_shape) : 0; - return circle::CreateReshapeOptions(_fbb, _new_shape); + return circle::CreateExpOptions(_fbb); } -inline SpaceToBatchNDOptionsT * -SpaceToBatchNDOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline CosOptionsT *CosOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SpaceToBatchNDOptionsT()); + auto _o = std::unique_ptr(new CosOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SpaceToBatchNDOptions::UnPackTo(SpaceToBatchNDOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void CosOptions::UnPackTo(CosOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -SpaceToBatchNDOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SpaceToBatchNDOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CosOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CosOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSpaceToBatchNDOptions(_fbb, _o, _rehasher); + return CreateCosOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSpaceToBatchNDOptions(flatbuffers::FlatBufferBuilder &_fbb, const SpaceToBatchNDOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateCosOptions(flatbuffers::FlatBufferBuilder &_fbb, const CosOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SpaceToBatchNDOptionsT *__o; + const CosOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateSpaceToBatchNDOptions(_fbb); + return circle::CreateCosOptions(_fbb); } -inline BatchToSpaceNDOptionsT * -BatchToSpaceNDOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ReducerOptionsT * +ReducerOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new BatchToSpaceNDOptionsT()); + auto _o = std::unique_ptr(new ReducerOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void BatchToSpaceNDOptions::UnPackTo(BatchToSpaceNDOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ReducerOptions::UnPackTo(ReducerOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = keep_dims(); + _o->keep_dims = _e; + } } -inline flatbuffers::Offset -BatchToSpaceNDOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BatchToSpaceNDOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ReducerOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ReducerOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateBatchToSpaceNDOptions(_fbb, _o, _rehasher); + return CreateReducerOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateBatchToSpaceNDOptions(flatbuffers::FlatBufferBuilder &_fbb, const BatchToSpaceNDOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateReducerOptions(flatbuffers::FlatBufferBuilder &_fbb, const ReducerOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const BatchToSpaceNDOptionsT *__o; + const ReducerOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateBatchToSpaceNDOptions(_fbb); + auto _keep_dims = _o->keep_dims; + return circle::CreateReducerOptions(_fbb, _keep_dims); } -inline SkipGramOptionsT * -SkipGramOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SqueezeOptionsT * +SqueezeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SkipGramOptionsT()); + auto _o = std::unique_ptr(new SqueezeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SkipGramOptions::UnPackTo(SkipGramOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SqueezeOptions::UnPackTo(SqueezeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = ngram_size(); - _o->ngram_size = _e; - } - { - auto _e = max_skip_size(); - _o->max_skip_size = _e; - } - { - auto _e = include_all_ngrams(); - _o->include_all_ngrams = _e; + auto _e = squeeze_dims(); + if (_e) + { + _o->squeeze_dims.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->squeeze_dims[_i] = _e->Get(_i); + } + } } } -inline flatbuffers::Offset -SkipGramOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SkipGramOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SqueezeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SqueezeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSkipGramOptions(_fbb, _o, _rehasher); + return CreateSqueezeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSkipGramOptions(flatbuffers::FlatBufferBuilder &_fbb, const SkipGramOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSqueezeOptions(flatbuffers::FlatBufferBuilder &_fbb, const SqueezeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SkipGramOptionsT *__o; + const SqueezeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _ngram_size = _o->ngram_size; - auto _max_skip_size = _o->max_skip_size; - auto _include_all_ngrams = _o->include_all_ngrams; - return circle::CreateSkipGramOptions(_fbb, _ngram_size, _max_skip_size, _include_all_ngrams); + auto _squeeze_dims = _o->squeeze_dims.size() ? _fbb.CreateVector(_o->squeeze_dims) : 0; + return circle::CreateSqueezeOptions(_fbb, _squeeze_dims); } -inline SpaceToDepthOptionsT * -SpaceToDepthOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SplitOptionsT *SplitOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SpaceToDepthOptionsT()); + auto _o = std::unique_ptr(new SplitOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SpaceToDepthOptions::UnPackTo(SpaceToDepthOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SplitOptions::UnPackTo(SplitOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = block_size(); - _o->block_size = _e; + auto _e = num_splits(); + _o->num_splits = _e; } } -inline flatbuffers::Offset -SpaceToDepthOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SpaceToDepthOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SplitOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SplitOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSpaceToDepthOptions(_fbb, _o, _rehasher); + return CreateSplitOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSpaceToDepthOptions(flatbuffers::FlatBufferBuilder &_fbb, const SpaceToDepthOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSplitOptions(flatbuffers::FlatBufferBuilder &_fbb, const SplitOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SpaceToDepthOptionsT *__o; + const SplitOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _block_size = _o->block_size; - return circle::CreateSpaceToDepthOptions(_fbb, _block_size); + auto _num_splits = _o->num_splits; + return circle::CreateSplitOptions(_fbb, _num_splits); } -inline DepthToSpaceOptionsT * -DepthToSpaceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SplitVOptionsT * +SplitVOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new DepthToSpaceOptionsT()); + auto _o = std::unique_ptr(new SplitVOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void DepthToSpaceOptions::UnPackTo(DepthToSpaceOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SplitVOptions::UnPackTo(SplitVOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = block_size(); - _o->block_size = _e; + auto _e = num_splits(); + _o->num_splits = _e; } } -inline flatbuffers::Offset -DepthToSpaceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DepthToSpaceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SplitVOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SplitVOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateDepthToSpaceOptions(_fbb, _o, _rehasher); + return CreateSplitVOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateDepthToSpaceOptions(flatbuffers::FlatBufferBuilder &_fbb, const DepthToSpaceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSplitVOptions(flatbuffers::FlatBufferBuilder &_fbb, const SplitVOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const DepthToSpaceOptionsT *__o; + const SplitVOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _block_size = _o->block_size; - return circle::CreateDepthToSpaceOptions(_fbb, _block_size); + auto _num_splits = _o->num_splits; + return circle::CreateSplitVOptions(_fbb, _num_splits); } -inline SubOptionsT *SubOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline StridedSliceOptionsT * +StridedSliceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SubOptionsT()); + auto _o = std::unique_ptr(new StridedSliceOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SubOptions::UnPackTo(SubOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void StridedSliceOptions::UnPackTo(StridedSliceOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; + auto _e = begin_mask(); + _o->begin_mask = _e; + } + { + auto _e = end_mask(); + _o->end_mask = _e; } { - auto _e = pot_scale_int16(); - _o->pot_scale_int16 = _e; + auto _e = ellipsis_mask(); + _o->ellipsis_mask = _e; + } + { + auto _e = new_axis_mask(); + _o->new_axis_mask = _e; + } + { + auto _e = shrink_axis_mask(); + _o->shrink_axis_mask = _e; } } -inline flatbuffers::Offset -SubOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SubOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +StridedSliceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const StridedSliceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSubOptions(_fbb, _o, _rehasher); + return CreateStridedSliceOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSubOptions(flatbuffers::FlatBufferBuilder &_fbb, const SubOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateStridedSliceOptions(flatbuffers::FlatBufferBuilder &_fbb, const StridedSliceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SubOptionsT *__o; + const StridedSliceOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _fused_activation_function = _o->fused_activation_function; - auto _pot_scale_int16 = _o->pot_scale_int16; - return circle::CreateSubOptions(_fbb, _fused_activation_function, _pot_scale_int16); + auto _begin_mask = _o->begin_mask; + auto _end_mask = _o->end_mask; + auto _ellipsis_mask = _o->ellipsis_mask; + auto _new_axis_mask = _o->new_axis_mask; + auto _shrink_axis_mask = _o->shrink_axis_mask; + return circle::CreateStridedSliceOptions(_fbb, _begin_mask, _end_mask, _ellipsis_mask, + _new_axis_mask, _shrink_axis_mask); } -inline DivOptionsT *DivOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LogSoftmaxOptionsT * +LogSoftmaxOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new DivOptionsT()); + auto _o = std::unique_ptr(new LogSoftmaxOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void DivOptions::UnPackTo(DivOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void LogSoftmaxOptions::UnPackTo(LogSoftmaxOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = fused_activation_function(); - _o->fused_activation_function = _e; - } } -inline flatbuffers::Offset -DivOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DivOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LogSoftmaxOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LogSoftmaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateDivOptions(_fbb, _o, _rehasher); + return CreateLogSoftmaxOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateDivOptions(flatbuffers::FlatBufferBuilder &_fbb, const DivOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLogSoftmaxOptions(flatbuffers::FlatBufferBuilder &_fbb, const LogSoftmaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const DivOptionsT *__o; + const LogSoftmaxOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _fused_activation_function = _o->fused_activation_function; - return circle::CreateDivOptions(_fbb, _fused_activation_function); + return circle::CreateLogSoftmaxOptions(_fbb); } -inline TopKV2OptionsT * -TopKV2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline CastOptionsT *CastOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new TopKV2OptionsT()); + auto _o = std::unique_ptr(new CastOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void TopKV2Options::UnPackTo(TopKV2OptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void CastOptions::UnPackTo(CastOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = in_data_type(); + _o->in_data_type = _e; + } + { + auto _e = out_data_type(); + _o->out_data_type = _e; + } } -inline flatbuffers::Offset -TopKV2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TopKV2OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CastOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CastOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateTopKV2Options(_fbb, _o, _rehasher); + return CreateCastOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateTopKV2Options(flatbuffers::FlatBufferBuilder &_fbb, const TopKV2OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateCastOptions(flatbuffers::FlatBufferBuilder &_fbb, const CastOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const TopKV2OptionsT *__o; + const CastOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateTopKV2Options(_fbb); + auto _in_data_type = _o->in_data_type; + auto _out_data_type = _o->out_data_type; + return circle::CreateCastOptions(_fbb, _in_data_type, _out_data_type); } -inline EmbeddingLookupSparseOptionsT * -EmbeddingLookupSparseOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline DequantizeOptionsT * +DequantizeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new EmbeddingLookupSparseOptionsT()); + auto _o = std::unique_ptr(new DequantizeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -EmbeddingLookupSparseOptions::UnPackTo(EmbeddingLookupSparseOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void DequantizeOptions::UnPackTo(DequantizeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = combiner(); - _o->combiner = _e; - } } -inline flatbuffers::Offset -EmbeddingLookupSparseOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const EmbeddingLookupSparseOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +DequantizeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DequantizeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateEmbeddingLookupSparseOptions(_fbb, _o, _rehasher); + return CreateDequantizeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateEmbeddingLookupSparseOptions(flatbuffers::FlatBufferBuilder &_fbb, - const EmbeddingLookupSparseOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateDequantizeOptions(flatbuffers::FlatBufferBuilder &_fbb, const DequantizeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const EmbeddingLookupSparseOptionsT *__o; + const DequantizeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _combiner = _o->combiner; - return circle::CreateEmbeddingLookupSparseOptions(_fbb, _combiner); + return circle::CreateDequantizeOptions(_fbb); } -inline GatherOptionsT * -GatherOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline MaximumMinimumOptionsT * +MaximumMinimumOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new GatherOptionsT()); + auto _o = std::unique_ptr(new MaximumMinimumOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void GatherOptions::UnPackTo(GatherOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void MaximumMinimumOptions::UnPackTo(MaximumMinimumOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = axis(); - _o->axis = _e; - } - { - auto _e = batch_dims(); - _o->batch_dims = _e; - } } -inline flatbuffers::Offset -GatherOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GatherOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +MaximumMinimumOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MaximumMinimumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateGatherOptions(_fbb, _o, _rehasher); + return CreateMaximumMinimumOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateGatherOptions(flatbuffers::FlatBufferBuilder &_fbb, const GatherOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateMaximumMinimumOptions(flatbuffers::FlatBufferBuilder &_fbb, const MaximumMinimumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const GatherOptionsT *__o; + const MaximumMinimumOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _axis = _o->axis; - auto _batch_dims = _o->batch_dims; - return circle::CreateGatherOptions(_fbb, _axis, _batch_dims); + return circle::CreateMaximumMinimumOptions(_fbb); } -inline TransposeOptionsT * -TransposeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline TileOptionsT *TileOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new TransposeOptionsT()); + auto _o = std::unique_ptr(new TileOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void TransposeOptions::UnPackTo(TransposeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void TileOptions::UnPackTo(TileOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -TransposeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TransposeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +TileOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TileOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateTransposeOptions(_fbb, _o, _rehasher); + return CreateTileOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateTransposeOptions(flatbuffers::FlatBufferBuilder &_fbb, const TransposeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateTileOptions(flatbuffers::FlatBufferBuilder &_fbb, const TileOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const TransposeOptionsT *__o; + const TileOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateTransposeOptions(_fbb); + return circle::CreateTileOptions(_fbb); } -inline ExpOptionsT *ExpOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ArgMaxOptionsT * +ArgMaxOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ExpOptionsT()); + auto _o = std::unique_ptr(new ArgMaxOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ExpOptions::UnPackTo(ExpOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ArgMaxOptions::UnPackTo(ArgMaxOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = output_type(); + _o->output_type = _e; + } } -inline flatbuffers::Offset -ExpOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ExpOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ArgMaxOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ArgMaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateExpOptions(_fbb, _o, _rehasher); + return CreateArgMaxOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateExpOptions(flatbuffers::FlatBufferBuilder &_fbb, const ExpOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateArgMaxOptions(flatbuffers::FlatBufferBuilder &_fbb, const ArgMaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ExpOptionsT *__o; + const ArgMaxOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateExpOptions(_fbb); + auto _output_type = _o->output_type; + return circle::CreateArgMaxOptions(_fbb, _output_type); } -inline CosOptionsT *CosOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ArgMinOptionsT * +ArgMinOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new CosOptionsT()); + auto _o = std::unique_ptr(new ArgMinOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void CosOptions::UnPackTo(CosOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ArgMinOptions::UnPackTo(ArgMinOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = output_type(); + _o->output_type = _e; + } } -inline flatbuffers::Offset -CosOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CosOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ArgMinOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ArgMinOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateCosOptions(_fbb, _o, _rehasher); + return CreateArgMinOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateCosOptions(flatbuffers::FlatBufferBuilder &_fbb, const CosOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateArgMinOptions(flatbuffers::FlatBufferBuilder &_fbb, const ArgMinOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const CosOptionsT *__o; + const ArgMinOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateCosOptions(_fbb); + auto _output_type = _o->output_type; + return circle::CreateArgMinOptions(_fbb, _output_type); } -inline ReducerOptionsT * -ReducerOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline GreaterOptionsT * +GreaterOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ReducerOptionsT()); + auto _o = std::unique_ptr(new GreaterOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ReducerOptions::UnPackTo(ReducerOptionsT *_o, +inline void GreaterOptions::UnPackTo(GreaterOptionsT *_o, const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = keep_dims(); - _o->keep_dims = _e; - } } -inline flatbuffers::Offset -ReducerOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ReducerOptionsT *_o, +inline flatbuffers::Offset +GreaterOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GreaterOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { - return CreateReducerOptions(_fbb, _o, _rehasher); + return CreateGreaterOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateReducerOptions(flatbuffers::FlatBufferBuilder &_fbb, const ReducerOptionsT *_o, +inline flatbuffers::Offset +CreateGreaterOptions(flatbuffers::FlatBufferBuilder &_fbb, const GreaterOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; @@ -17598,634 +19455,609 @@ CreateReducerOptions(flatbuffers::FlatBufferBuilder &_fbb, const ReducerOptionsT struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ReducerOptionsT *__o; + const GreaterOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _keep_dims = _o->keep_dims; - return circle::CreateReducerOptions(_fbb, _keep_dims); + return circle::CreateGreaterOptions(_fbb); } -inline SqueezeOptionsT * -SqueezeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline GreaterEqualOptionsT * +GreaterEqualOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SqueezeOptionsT()); + auto _o = std::unique_ptr(new GreaterEqualOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SqueezeOptions::UnPackTo(SqueezeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void GreaterEqualOptions::UnPackTo(GreaterEqualOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = squeeze_dims(); - if (_e) - { - _o->squeeze_dims.resize(_e->size()); - for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) - { - _o->squeeze_dims[_i] = _e->Get(_i); - } - } - } } -inline flatbuffers::Offset -SqueezeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SqueezeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +GreaterEqualOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GreaterEqualOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSqueezeOptions(_fbb, _o, _rehasher); + return CreateGreaterEqualOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSqueezeOptions(flatbuffers::FlatBufferBuilder &_fbb, const SqueezeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateGreaterEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const GreaterEqualOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SqueezeOptionsT *__o; + const GreaterEqualOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _squeeze_dims = _o->squeeze_dims.size() ? _fbb.CreateVector(_o->squeeze_dims) : 0; - return circle::CreateSqueezeOptions(_fbb, _squeeze_dims); + return circle::CreateGreaterEqualOptions(_fbb); } -inline SplitOptionsT *SplitOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LessOptionsT *LessOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SplitOptionsT()); + auto _o = std::unique_ptr(new LessOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SplitOptions::UnPackTo(SplitOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void LessOptions::UnPackTo(LessOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = num_splits(); - _o->num_splits = _e; - } } -inline flatbuffers::Offset -SplitOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SplitOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LessOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LessOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSplitOptions(_fbb, _o, _rehasher); + return CreateLessOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSplitOptions(flatbuffers::FlatBufferBuilder &_fbb, const SplitOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLessOptions(flatbuffers::FlatBufferBuilder &_fbb, const LessOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SplitOptionsT *__o; + const LessOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _num_splits = _o->num_splits; - return circle::CreateSplitOptions(_fbb, _num_splits); + return circle::CreateLessOptions(_fbb); } -inline SplitVOptionsT * -SplitVOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LessEqualOptionsT * +LessEqualOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SplitVOptionsT()); + auto _o = std::unique_ptr(new LessEqualOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SplitVOptions::UnPackTo(SplitVOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void LessEqualOptions::UnPackTo(LessEqualOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = num_splits(); - _o->num_splits = _e; - } } -inline flatbuffers::Offset -SplitVOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SplitVOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LessEqualOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LessEqualOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSplitVOptions(_fbb, _o, _rehasher); + return CreateLessEqualOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSplitVOptions(flatbuffers::FlatBufferBuilder &_fbb, const SplitVOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLessEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const LessEqualOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SplitVOptionsT *__o; + const LessEqualOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _num_splits = _o->num_splits; - return circle::CreateSplitVOptions(_fbb, _num_splits); + return circle::CreateLessEqualOptions(_fbb); } -inline StridedSliceOptionsT * -StridedSliceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline NegOptionsT *NegOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new StridedSliceOptionsT()); + auto _o = std::unique_ptr(new NegOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void StridedSliceOptions::UnPackTo(StridedSliceOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void NegOptions::UnPackTo(NegOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = begin_mask(); - _o->begin_mask = _e; - } - { - auto _e = end_mask(); - _o->end_mask = _e; - } - { - auto _e = ellipsis_mask(); - _o->ellipsis_mask = _e; - } - { - auto _e = new_axis_mask(); - _o->new_axis_mask = _e; - } - { - auto _e = shrink_axis_mask(); - _o->shrink_axis_mask = _e; - } } -inline flatbuffers::Offset -StridedSliceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const StridedSliceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +NegOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const NegOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateStridedSliceOptions(_fbb, _o, _rehasher); + return CreateNegOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateStridedSliceOptions(flatbuffers::FlatBufferBuilder &_fbb, const StridedSliceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateNegOptions(flatbuffers::FlatBufferBuilder &_fbb, const NegOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const StridedSliceOptionsT *__o; + const NegOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _begin_mask = _o->begin_mask; - auto _end_mask = _o->end_mask; - auto _ellipsis_mask = _o->ellipsis_mask; - auto _new_axis_mask = _o->new_axis_mask; - auto _shrink_axis_mask = _o->shrink_axis_mask; - return circle::CreateStridedSliceOptions(_fbb, _begin_mask, _end_mask, _ellipsis_mask, - _new_axis_mask, _shrink_axis_mask); + return circle::CreateNegOptions(_fbb); } -inline LogSoftmaxOptionsT * -LogSoftmaxOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SelectOptionsT * +SelectOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LogSoftmaxOptionsT()); + auto _o = std::unique_ptr(new SelectOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LogSoftmaxOptions::UnPackTo(LogSoftmaxOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SelectOptions::UnPackTo(SelectOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -LogSoftmaxOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LogSoftmaxOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SelectOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SelectOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLogSoftmaxOptions(_fbb, _o, _rehasher); + return CreateSelectOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLogSoftmaxOptions(flatbuffers::FlatBufferBuilder &_fbb, const LogSoftmaxOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSelectOptions(flatbuffers::FlatBufferBuilder &_fbb, const SelectOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LogSoftmaxOptionsT *__o; + const SelectOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateLogSoftmaxOptions(_fbb); + return circle::CreateSelectOptions(_fbb); } -inline CastOptionsT *CastOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SliceOptionsT *SliceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new CastOptionsT()); + auto _o = std::unique_ptr(new SliceOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void CastOptions::UnPackTo(CastOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SliceOptions::UnPackTo(SliceOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = in_data_type(); - _o->in_data_type = _e; - } - { - auto _e = out_data_type(); - _o->out_data_type = _e; - } -} - -inline flatbuffers::Offset -CastOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CastOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +} + +inline flatbuffers::Offset +SliceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SliceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateCastOptions(_fbb, _o, _rehasher); + return CreateSliceOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateCastOptions(flatbuffers::FlatBufferBuilder &_fbb, const CastOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSliceOptions(flatbuffers::FlatBufferBuilder &_fbb, const SliceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const CastOptionsT *__o; + const SliceOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _in_data_type = _o->in_data_type; - auto _out_data_type = _o->out_data_type; - return circle::CreateCastOptions(_fbb, _in_data_type, _out_data_type); + return circle::CreateSliceOptions(_fbb); } -inline DequantizeOptionsT * -DequantizeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline TransposeConvOptionsT * +TransposeConvOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new DequantizeOptionsT()); + auto _o = std::unique_ptr(new TransposeConvOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void DequantizeOptions::UnPackTo(DequantizeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void TransposeConvOptions::UnPackTo(TransposeConvOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = padding(); + _o->padding = _e; + } + { + auto _e = stride_w(); + _o->stride_w = _e; + } + { + auto _e = stride_h(); + _o->stride_h = _e; + } + { + auto _e = fused_activation_function(); + _o->fused_activation_function = _e; + } } -inline flatbuffers::Offset -DequantizeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DequantizeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +TransposeConvOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TransposeConvOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateDequantizeOptions(_fbb, _o, _rehasher); + return CreateTransposeConvOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateDequantizeOptions(flatbuffers::FlatBufferBuilder &_fbb, const DequantizeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateTransposeConvOptions(flatbuffers::FlatBufferBuilder &_fbb, const TransposeConvOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const DequantizeOptionsT *__o; + const TransposeConvOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateDequantizeOptions(_fbb); + auto _padding = _o->padding; + auto _stride_w = _o->stride_w; + auto _stride_h = _o->stride_h; + auto _fused_activation_function = _o->fused_activation_function; + return circle::CreateTransposeConvOptions(_fbb, _padding, _stride_w, _stride_h, + _fused_activation_function); } -inline MaximumMinimumOptionsT * -MaximumMinimumOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ExpandDimsOptionsT * +ExpandDimsOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new MaximumMinimumOptionsT()); + auto _o = std::unique_ptr(new ExpandDimsOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void MaximumMinimumOptions::UnPackTo(MaximumMinimumOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ExpandDimsOptions::UnPackTo(ExpandDimsOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -MaximumMinimumOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MaximumMinimumOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ExpandDimsOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ExpandDimsOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateMaximumMinimumOptions(_fbb, _o, _rehasher); + return CreateExpandDimsOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateMaximumMinimumOptions(flatbuffers::FlatBufferBuilder &_fbb, const MaximumMinimumOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateExpandDimsOptions(flatbuffers::FlatBufferBuilder &_fbb, const ExpandDimsOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const MaximumMinimumOptionsT *__o; + const ExpandDimsOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateMaximumMinimumOptions(_fbb); + return circle::CreateExpandDimsOptions(_fbb); } -inline TileOptionsT *TileOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SparseToDenseOptionsT * +SparseToDenseOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new TileOptionsT()); + auto _o = std::unique_ptr(new SparseToDenseOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void TileOptions::UnPackTo(TileOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SparseToDenseOptions::UnPackTo(SparseToDenseOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = validate_indices(); + _o->validate_indices = _e; + } } -inline flatbuffers::Offset -TileOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TileOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SparseToDenseOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SparseToDenseOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateTileOptions(_fbb, _o, _rehasher); + return CreateSparseToDenseOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateTileOptions(flatbuffers::FlatBufferBuilder &_fbb, const TileOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSparseToDenseOptions(flatbuffers::FlatBufferBuilder &_fbb, const SparseToDenseOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const TileOptionsT *__o; + const SparseToDenseOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateTileOptions(_fbb); + auto _validate_indices = _o->validate_indices; + return circle::CreateSparseToDenseOptions(_fbb, _validate_indices); } -inline ArgMaxOptionsT * -ArgMaxOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline EqualOptionsT *EqualOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ArgMaxOptionsT()); + auto _o = std::unique_ptr(new EqualOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ArgMaxOptions::UnPackTo(ArgMaxOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void EqualOptions::UnPackTo(EqualOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = output_type(); - _o->output_type = _e; - } } -inline flatbuffers::Offset -ArgMaxOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ArgMaxOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +EqualOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const EqualOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateArgMaxOptions(_fbb, _o, _rehasher); + return CreateEqualOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateArgMaxOptions(flatbuffers::FlatBufferBuilder &_fbb, const ArgMaxOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const EqualOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ArgMaxOptionsT *__o; + const EqualOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _output_type = _o->output_type; - return circle::CreateArgMaxOptions(_fbb, _output_type); + return circle::CreateEqualOptions(_fbb); } -inline ArgMinOptionsT * -ArgMinOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline NotEqualOptionsT * +NotEqualOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ArgMinOptionsT()); + auto _o = std::unique_ptr(new NotEqualOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ArgMinOptions::UnPackTo(ArgMinOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void NotEqualOptions::UnPackTo(NotEqualOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = output_type(); - _o->output_type = _e; - } } -inline flatbuffers::Offset -ArgMinOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ArgMinOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +NotEqualOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const NotEqualOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateArgMinOptions(_fbb, _o, _rehasher); + return CreateNotEqualOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateArgMinOptions(flatbuffers::FlatBufferBuilder &_fbb, const ArgMinOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateNotEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const NotEqualOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ArgMinOptionsT *__o; + const NotEqualOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _output_type = _o->output_type; - return circle::CreateArgMinOptions(_fbb, _output_type); + return circle::CreateNotEqualOptions(_fbb); } -inline GreaterOptionsT * -GreaterOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ShapeOptionsT *ShapeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new GreaterOptionsT()); + auto _o = std::unique_ptr(new ShapeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void GreaterOptions::UnPackTo(GreaterOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ShapeOptions::UnPackTo(ShapeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = out_type(); + _o->out_type = _e; + } } -inline flatbuffers::Offset -GreaterOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GreaterOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ShapeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ShapeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateGreaterOptions(_fbb, _o, _rehasher); + return CreateShapeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateGreaterOptions(flatbuffers::FlatBufferBuilder &_fbb, const GreaterOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateShapeOptions(flatbuffers::FlatBufferBuilder &_fbb, const ShapeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const GreaterOptionsT *__o; + const ShapeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateGreaterOptions(_fbb); + auto _out_type = _o->out_type; + return circle::CreateShapeOptions(_fbb, _out_type); } -inline GreaterEqualOptionsT * -GreaterEqualOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline RankOptionsT *RankOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new GreaterEqualOptionsT()); + auto _o = std::unique_ptr(new RankOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void GreaterEqualOptions::UnPackTo(GreaterEqualOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void RankOptions::UnPackTo(RankOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -GreaterEqualOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GreaterEqualOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +RankOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RankOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateGreaterEqualOptions(_fbb, _o, _rehasher); + return CreateRankOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateGreaterEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const GreaterEqualOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateRankOptions(flatbuffers::FlatBufferBuilder &_fbb, const RankOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const GreaterEqualOptionsT *__o; + const RankOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateGreaterEqualOptions(_fbb); + return circle::CreateRankOptions(_fbb); } -inline LessOptionsT *LessOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline PowOptionsT *PowOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LessOptionsT()); + auto _o = std::unique_ptr(new PowOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LessOptions::UnPackTo(LessOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void PowOptions::UnPackTo(PowOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -LessOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LessOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +PowOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PowOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLessOptions(_fbb, _o, _rehasher); + return CreatePowOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLessOptions(flatbuffers::FlatBufferBuilder &_fbb, const LessOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreatePowOptions(flatbuffers::FlatBufferBuilder &_fbb, const PowOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LessOptionsT *__o; + const PowOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateLessOptions(_fbb); + return circle::CreatePowOptions(_fbb); } -inline LessEqualOptionsT * -LessEqualOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline FakeQuantOptionsT * +FakeQuantOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LessEqualOptionsT()); + auto _o = std::unique_ptr(new FakeQuantOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LessEqualOptions::UnPackTo(LessEqualOptionsT *_o, +inline void FakeQuantOptions::UnPackTo(FakeQuantOptionsT *_o, const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = min(); + _o->min = _e; + } + { + auto _e = max(); + _o->max = _e; + } + { + auto _e = num_bits(); + _o->num_bits = _e; + } + { + auto _e = narrow_range(); + _o->narrow_range = _e; + } } -inline flatbuffers::Offset -LessEqualOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LessEqualOptionsT *_o, +inline flatbuffers::Offset +FakeQuantOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FakeQuantOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLessEqualOptions(_fbb, _o, _rehasher); + return CreateFakeQuantOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLessEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const LessEqualOptionsT *_o, +inline flatbuffers::Offset +CreateFakeQuantOptions(flatbuffers::FlatBufferBuilder &_fbb, const FakeQuantOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; @@ -18233,697 +20065,682 @@ CreateLessEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const LessEqualOpti struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LessEqualOptionsT *__o; + const FakeQuantOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateLessEqualOptions(_fbb); + auto _min = _o->min; + auto _max = _o->max; + auto _num_bits = _o->num_bits; + auto _narrow_range = _o->narrow_range; + return circle::CreateFakeQuantOptions(_fbb, _min, _max, _num_bits, _narrow_range); } -inline NegOptionsT *NegOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline PackOptionsT *PackOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new NegOptionsT()); + auto _o = std::unique_ptr(new PackOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void NegOptions::UnPackTo(NegOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void PackOptions::UnPackTo(PackOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = values_count(); + _o->values_count = _e; + } + { + auto _e = axis(); + _o->axis = _e; + } } -inline flatbuffers::Offset -NegOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const NegOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +PackOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PackOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateNegOptions(_fbb, _o, _rehasher); + return CreatePackOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateNegOptions(flatbuffers::FlatBufferBuilder &_fbb, const NegOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreatePackOptions(flatbuffers::FlatBufferBuilder &_fbb, const PackOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const NegOptionsT *__o; + const PackOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateNegOptions(_fbb); + auto _values_count = _o->values_count; + auto _axis = _o->axis; + return circle::CreatePackOptions(_fbb, _values_count, _axis); } -inline SelectOptionsT * -SelectOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LogicalOrOptionsT * +LogicalOrOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SelectOptionsT()); + auto _o = std::unique_ptr(new LogicalOrOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SelectOptions::UnPackTo(SelectOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void LogicalOrOptions::UnPackTo(LogicalOrOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -SelectOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SelectOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LogicalOrOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LogicalOrOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSelectOptions(_fbb, _o, _rehasher); + return CreateLogicalOrOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSelectOptions(flatbuffers::FlatBufferBuilder &_fbb, const SelectOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLogicalOrOptions(flatbuffers::FlatBufferBuilder &_fbb, const LogicalOrOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SelectOptionsT *__o; + const LogicalOrOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateSelectOptions(_fbb); + return circle::CreateLogicalOrOptions(_fbb); } -inline SliceOptionsT *SliceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline OneHotOptionsT * +OneHotOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SliceOptionsT()); + auto _o = std::unique_ptr(new OneHotOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SliceOptions::UnPackTo(SliceOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void OneHotOptions::UnPackTo(OneHotOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = axis(); + _o->axis = _e; + } } -inline flatbuffers::Offset -SliceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SliceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +OneHotOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const OneHotOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSliceOptions(_fbb, _o, _rehasher); + return CreateOneHotOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSliceOptions(flatbuffers::FlatBufferBuilder &_fbb, const SliceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateOneHotOptions(flatbuffers::FlatBufferBuilder &_fbb, const OneHotOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SliceOptionsT *__o; + const OneHotOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateSliceOptions(_fbb); + auto _axis = _o->axis; + return circle::CreateOneHotOptions(_fbb, _axis); } -inline TransposeConvOptionsT * -TransposeConvOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline AbsOptionsT *AbsOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new TransposeConvOptionsT()); + auto _o = std::unique_ptr(new AbsOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void TransposeConvOptions::UnPackTo(TransposeConvOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void AbsOptions::UnPackTo(AbsOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = padding(); - _o->padding = _e; - } - { - auto _e = stride_w(); - _o->stride_w = _e; - } - { - auto _e = stride_h(); - _o->stride_h = _e; - } } -inline flatbuffers::Offset -TransposeConvOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const TransposeConvOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +AbsOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AbsOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateTransposeConvOptions(_fbb, _o, _rehasher); + return CreateAbsOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateTransposeConvOptions(flatbuffers::FlatBufferBuilder &_fbb, const TransposeConvOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateAbsOptions(flatbuffers::FlatBufferBuilder &_fbb, const AbsOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const TransposeConvOptionsT *__o; + const AbsOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _padding = _o->padding; - auto _stride_w = _o->stride_w; - auto _stride_h = _o->stride_h; - return circle::CreateTransposeConvOptions(_fbb, _padding, _stride_w, _stride_h); + return circle::CreateAbsOptions(_fbb); } -inline ExpandDimsOptionsT * -ExpandDimsOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline HardSwishOptionsT * +HardSwishOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ExpandDimsOptionsT()); + auto _o = std::unique_ptr(new HardSwishOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ExpandDimsOptions::UnPackTo(ExpandDimsOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void HardSwishOptions::UnPackTo(HardSwishOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -ExpandDimsOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ExpandDimsOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +HardSwishOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const HardSwishOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateExpandDimsOptions(_fbb, _o, _rehasher); + return CreateHardSwishOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateExpandDimsOptions(flatbuffers::FlatBufferBuilder &_fbb, const ExpandDimsOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateHardSwishOptions(flatbuffers::FlatBufferBuilder &_fbb, const HardSwishOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ExpandDimsOptionsT *__o; + const HardSwishOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateExpandDimsOptions(_fbb); + return circle::CreateHardSwishOptions(_fbb); } -inline SparseToDenseOptionsT * -SparseToDenseOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LogicalAndOptionsT * +LogicalAndOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SparseToDenseOptionsT()); + auto _o = std::unique_ptr(new LogicalAndOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SparseToDenseOptions::UnPackTo(SparseToDenseOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void LogicalAndOptions::UnPackTo(LogicalAndOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = validate_indices(); - _o->validate_indices = _e; - } } -inline flatbuffers::Offset -SparseToDenseOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SparseToDenseOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LogicalAndOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LogicalAndOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSparseToDenseOptions(_fbb, _o, _rehasher); + return CreateLogicalAndOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSparseToDenseOptions(flatbuffers::FlatBufferBuilder &_fbb, const SparseToDenseOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLogicalAndOptions(flatbuffers::FlatBufferBuilder &_fbb, const LogicalAndOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SparseToDenseOptionsT *__o; + const LogicalAndOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _validate_indices = _o->validate_indices; - return circle::CreateSparseToDenseOptions(_fbb, _validate_indices); + return circle::CreateLogicalAndOptions(_fbb); } -inline EqualOptionsT *EqualOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LogicalNotOptionsT * +LogicalNotOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new EqualOptionsT()); + auto _o = std::unique_ptr(new LogicalNotOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void EqualOptions::UnPackTo(EqualOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void LogicalNotOptions::UnPackTo(LogicalNotOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -EqualOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const EqualOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LogicalNotOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LogicalNotOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateEqualOptions(_fbb, _o, _rehasher); + return CreateLogicalNotOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const EqualOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLogicalNotOptions(flatbuffers::FlatBufferBuilder &_fbb, const LogicalNotOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const EqualOptionsT *__o; + const LogicalNotOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateEqualOptions(_fbb); + return circle::CreateLogicalNotOptions(_fbb); } -inline NotEqualOptionsT * -NotEqualOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline UnpackOptionsT * +UnpackOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new NotEqualOptionsT()); + auto _o = std::unique_ptr(new UnpackOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void NotEqualOptions::UnPackTo(NotEqualOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void UnpackOptions::UnPackTo(UnpackOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = num(); + _o->num = _e; + } + { + auto _e = axis(); + _o->axis = _e; + } } -inline flatbuffers::Offset -NotEqualOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const NotEqualOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +UnpackOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const UnpackOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateNotEqualOptions(_fbb, _o, _rehasher); + return CreateUnpackOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateNotEqualOptions(flatbuffers::FlatBufferBuilder &_fbb, const NotEqualOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateUnpackOptions(flatbuffers::FlatBufferBuilder &_fbb, const UnpackOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const NotEqualOptionsT *__o; + const UnpackOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateNotEqualOptions(_fbb); + auto _num = _o->num; + auto _axis = _o->axis; + return circle::CreateUnpackOptions(_fbb, _num, _axis); } -inline ShapeOptionsT *ShapeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline FloorDivOptionsT * +FloorDivOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ShapeOptionsT()); + auto _o = std::unique_ptr(new FloorDivOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ShapeOptions::UnPackTo(ShapeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void FloorDivOptions::UnPackTo(FloorDivOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = out_type(); - _o->out_type = _e; - } } -inline flatbuffers::Offset -ShapeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ShapeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +FloorDivOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FloorDivOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateShapeOptions(_fbb, _o, _rehasher); + return CreateFloorDivOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateShapeOptions(flatbuffers::FlatBufferBuilder &_fbb, const ShapeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateFloorDivOptions(flatbuffers::FlatBufferBuilder &_fbb, const FloorDivOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ShapeOptionsT *__o; + const FloorDivOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _out_type = _o->out_type; - return circle::CreateShapeOptions(_fbb, _out_type); + return circle::CreateFloorDivOptions(_fbb); } -inline RankOptionsT *RankOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SquareOptionsT * +SquareOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new RankOptionsT()); + auto _o = std::unique_ptr(new SquareOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void RankOptions::UnPackTo(RankOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SquareOptions::UnPackTo(SquareOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -RankOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RankOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SquareOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SquareOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateRankOptions(_fbb, _o, _rehasher); + return CreateSquareOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateRankOptions(flatbuffers::FlatBufferBuilder &_fbb, const RankOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSquareOptions(flatbuffers::FlatBufferBuilder &_fbb, const SquareOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const RankOptionsT *__o; + const SquareOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateRankOptions(_fbb); + return circle::CreateSquareOptions(_fbb); } -inline PowOptionsT *PowOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ZerosLikeOptionsT * +ZerosLikeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new PowOptionsT()); + auto _o = std::unique_ptr(new ZerosLikeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void PowOptions::UnPackTo(PowOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ZerosLikeOptions::UnPackTo(ZerosLikeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -PowOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PowOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ZerosLikeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ZerosLikeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreatePowOptions(_fbb, _o, _rehasher); + return CreateZerosLikeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreatePowOptions(flatbuffers::FlatBufferBuilder &_fbb, const PowOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateZerosLikeOptions(flatbuffers::FlatBufferBuilder &_fbb, const ZerosLikeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const PowOptionsT *__o; + const ZerosLikeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreatePowOptions(_fbb); + return circle::CreateZerosLikeOptions(_fbb); } -inline FakeQuantOptionsT * -FakeQuantOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline FillOptionsT *FillOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new FakeQuantOptionsT()); + auto _o = std::unique_ptr(new FillOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void FakeQuantOptions::UnPackTo(FakeQuantOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void FillOptions::UnPackTo(FillOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = min(); - _o->min = _e; - } - { - auto _e = max(); - _o->max = _e; - } - { - auto _e = num_bits(); - _o->num_bits = _e; - } - { - auto _e = narrow_range(); - _o->narrow_range = _e; - } } -inline flatbuffers::Offset -FakeQuantOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FakeQuantOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +FillOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FillOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateFakeQuantOptions(_fbb, _o, _rehasher); + return CreateFillOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateFakeQuantOptions(flatbuffers::FlatBufferBuilder &_fbb, const FakeQuantOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateFillOptions(flatbuffers::FlatBufferBuilder &_fbb, const FillOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const FakeQuantOptionsT *__o; + const FillOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _min = _o->min; - auto _max = _o->max; - auto _num_bits = _o->num_bits; - auto _narrow_range = _o->narrow_range; - return circle::CreateFakeQuantOptions(_fbb, _min, _max, _num_bits, _narrow_range); + return circle::CreateFillOptions(_fbb); } -inline PackOptionsT *PackOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline FloorModOptionsT * +FloorModOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new PackOptionsT()); + auto _o = std::unique_ptr(new FloorModOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void PackOptions::UnPackTo(PackOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void FloorModOptions::UnPackTo(FloorModOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = values_count(); - _o->values_count = _e; - } - { - auto _e = axis(); - _o->axis = _e; - } } -inline flatbuffers::Offset -PackOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const PackOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +FloorModOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FloorModOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreatePackOptions(_fbb, _o, _rehasher); + return CreateFloorModOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreatePackOptions(flatbuffers::FlatBufferBuilder &_fbb, const PackOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateFloorModOptions(flatbuffers::FlatBufferBuilder &_fbb, const FloorModOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const PackOptionsT *__o; + const FloorModOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _values_count = _o->values_count; - auto _axis = _o->axis; - return circle::CreatePackOptions(_fbb, _values_count, _axis); + return circle::CreateFloorModOptions(_fbb); } -inline LogicalOrOptionsT * -LogicalOrOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline RangeOptionsT *RangeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LogicalOrOptionsT()); + auto _o = std::unique_ptr(new RangeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LogicalOrOptions::UnPackTo(LogicalOrOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void RangeOptions::UnPackTo(RangeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -LogicalOrOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LogicalOrOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +RangeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RangeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLogicalOrOptions(_fbb, _o, _rehasher); + return CreateRangeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLogicalOrOptions(flatbuffers::FlatBufferBuilder &_fbb, const LogicalOrOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateRangeOptions(flatbuffers::FlatBufferBuilder &_fbb, const RangeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LogicalOrOptionsT *__o; + const RangeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateLogicalOrOptions(_fbb); + return circle::CreateRangeOptions(_fbb); } -inline OneHotOptionsT * -OneHotOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline LeakyReluOptionsT * +LeakyReluOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new OneHotOptionsT()); + auto _o = std::unique_ptr(new LeakyReluOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void OneHotOptions::UnPackTo(OneHotOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void LeakyReluOptions::UnPackTo(LeakyReluOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = axis(); - _o->axis = _e; + auto _e = alpha(); + _o->alpha = _e; } } -inline flatbuffers::Offset -OneHotOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const OneHotOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +LeakyReluOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LeakyReluOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateOneHotOptions(_fbb, _o, _rehasher); + return CreateLeakyReluOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateOneHotOptions(flatbuffers::FlatBufferBuilder &_fbb, const OneHotOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateLeakyReluOptions(flatbuffers::FlatBufferBuilder &_fbb, const LeakyReluOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const OneHotOptionsT *__o; + const LeakyReluOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _axis = _o->axis; - return circle::CreateOneHotOptions(_fbb, _axis); + auto _alpha = _o->alpha; + return circle::CreateLeakyReluOptions(_fbb, _alpha); } -inline AbsOptionsT *AbsOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SquaredDifferenceOptionsT * +SquaredDifferenceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new AbsOptionsT()); + auto _o = std::unique_ptr(new SquaredDifferenceOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void AbsOptions::UnPackTo(AbsOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +SquaredDifferenceOptions::UnPackTo(SquaredDifferenceOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -AbsOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AbsOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SquaredDifferenceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const SquaredDifferenceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateAbsOptions(_fbb, _o, _rehasher); + return CreateSquaredDifferenceOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateAbsOptions(flatbuffers::FlatBufferBuilder &_fbb, const AbsOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSquaredDifferenceOptions(flatbuffers::FlatBufferBuilder &_fbb, + const SquaredDifferenceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const AbsOptionsT *__o; + const SquaredDifferenceOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateAbsOptions(_fbb); + return circle::CreateSquaredDifferenceOptions(_fbb); } -inline HardSwishOptionsT * -HardSwishOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline MirrorPadOptionsT * +MirrorPadOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new HardSwishOptionsT()); + auto _o = std::unique_ptr(new MirrorPadOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void HardSwishOptions::UnPackTo(HardSwishOptionsT *_o, +inline void MirrorPadOptions::UnPackTo(MirrorPadOptionsT *_o, const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = mode(); + _o->mode = _e; + } } -inline flatbuffers::Offset -HardSwishOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const HardSwishOptionsT *_o, +inline flatbuffers::Offset +MirrorPadOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MirrorPadOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { - return CreateHardSwishOptions(_fbb, _o, _rehasher); + return CreateMirrorPadOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateHardSwishOptions(flatbuffers::FlatBufferBuilder &_fbb, const HardSwishOptionsT *_o, +inline flatbuffers::Offset +CreateMirrorPadOptions(flatbuffers::FlatBufferBuilder &_fbb, const MirrorPadOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; @@ -18931,161 +20748,156 @@ CreateHardSwishOptions(flatbuffers::FlatBufferBuilder &_fbb, const HardSwishOpti struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const HardSwishOptionsT *__o; + const MirrorPadOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateHardSwishOptions(_fbb); + auto _mode = _o->mode; + return circle::CreateMirrorPadOptions(_fbb, _mode); } -inline LogicalAndOptionsT * -LogicalAndOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline UniqueOptionsT * +UniqueOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LogicalAndOptionsT()); + auto _o = std::unique_ptr(new UniqueOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LogicalAndOptions::UnPackTo(LogicalAndOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void UniqueOptions::UnPackTo(UniqueOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = idx_out_type(); + _o->idx_out_type = _e; + } } -inline flatbuffers::Offset -LogicalAndOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LogicalAndOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +UniqueOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const UniqueOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLogicalAndOptions(_fbb, _o, _rehasher); + return CreateUniqueOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLogicalAndOptions(flatbuffers::FlatBufferBuilder &_fbb, const LogicalAndOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateUniqueOptions(flatbuffers::FlatBufferBuilder &_fbb, const UniqueOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LogicalAndOptionsT *__o; + const UniqueOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateLogicalAndOptions(_fbb); + auto _idx_out_type = _o->idx_out_type; + return circle::CreateUniqueOptions(_fbb, _idx_out_type); } -inline LogicalNotOptionsT * -LogicalNotOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ReverseV2OptionsT * +ReverseV2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LogicalNotOptionsT()); + auto _o = std::unique_ptr(new ReverseV2OptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LogicalNotOptions::UnPackTo(LogicalNotOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ReverseV2Options::UnPackTo(ReverseV2OptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -LogicalNotOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LogicalNotOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ReverseV2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ReverseV2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLogicalNotOptions(_fbb, _o, _rehasher); + return CreateReverseV2Options(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLogicalNotOptions(flatbuffers::FlatBufferBuilder &_fbb, const LogicalNotOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateReverseV2Options(flatbuffers::FlatBufferBuilder &_fbb, const ReverseV2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LogicalNotOptionsT *__o; + const ReverseV2OptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateLogicalNotOptions(_fbb); + return circle::CreateReverseV2Options(_fbb); } -inline UnpackOptionsT * -UnpackOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline AddNOptionsT *AddNOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new UnpackOptionsT()); + auto _o = std::unique_ptr(new AddNOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void UnpackOptions::UnPackTo(UnpackOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void AddNOptions::UnPackTo(AddNOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = num(); - _o->num = _e; - } - { - auto _e = axis(); - _o->axis = _e; - } } -inline flatbuffers::Offset -UnpackOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const UnpackOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +AddNOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AddNOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateUnpackOptions(_fbb, _o, _rehasher); + return CreateAddNOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateUnpackOptions(flatbuffers::FlatBufferBuilder &_fbb, const UnpackOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateAddNOptions(flatbuffers::FlatBufferBuilder &_fbb, const AddNOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const UnpackOptionsT *__o; + const AddNOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _num = _o->num; - auto _axis = _o->axis; - return circle::CreateUnpackOptions(_fbb, _num, _axis); + return circle::CreateAddNOptions(_fbb); } -inline FloorDivOptionsT * -FloorDivOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline GatherNdOptionsT * +GatherNdOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new FloorDivOptionsT()); + auto _o = std::unique_ptr(new GatherNdOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void FloorDivOptions::UnPackTo(FloorDivOptionsT *_o, +inline void GatherNdOptions::UnPackTo(GatherNdOptionsT *_o, const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -FloorDivOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FloorDivOptionsT *_o, +inline flatbuffers::Offset +GatherNdOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GatherNdOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { - return CreateFloorDivOptions(_fbb, _o, _rehasher); + return CreateGatherNdOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateFloorDivOptions(flatbuffers::FlatBufferBuilder &_fbb, const FloorDivOptionsT *_o, +inline flatbuffers::Offset +CreateGatherNdOptions(flatbuffers::FlatBufferBuilder &_fbb, const GatherNdOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; @@ -19093,150 +20905,163 @@ CreateFloorDivOptions(flatbuffers::FlatBufferBuilder &_fbb, const FloorDivOption struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const FloorDivOptionsT *__o; + const GatherNdOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateFloorDivOptions(_fbb); + return circle::CreateGatherNdOptions(_fbb); } -inline SquareOptionsT * -SquareOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline WhereOptionsT *WhereOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SquareOptionsT()); + auto _o = std::unique_ptr(new WhereOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SquareOptions::UnPackTo(SquareOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void WhereOptions::UnPackTo(WhereOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -SquareOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SquareOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +WhereOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const WhereOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSquareOptions(_fbb, _o, _rehasher); + return CreateWhereOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSquareOptions(flatbuffers::FlatBufferBuilder &_fbb, const SquareOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateWhereOptions(flatbuffers::FlatBufferBuilder &_fbb, const WhereOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SquareOptionsT *__o; + const WhereOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateSquareOptions(_fbb); + return circle::CreateWhereOptions(_fbb); } -inline ZerosLikeOptionsT * -ZerosLikeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ReverseSequenceOptionsT * +ReverseSequenceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ZerosLikeOptionsT()); + auto _o = std::unique_ptr(new ReverseSequenceOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ZerosLikeOptions::UnPackTo(ZerosLikeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +ReverseSequenceOptions::UnPackTo(ReverseSequenceOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = seq_dim(); + _o->seq_dim = _e; + } + { + auto _e = batch_dim(); + _o->batch_dim = _e; + } } -inline flatbuffers::Offset -ZerosLikeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ZerosLikeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ReverseSequenceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const ReverseSequenceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateZerosLikeOptions(_fbb, _o, _rehasher); + return CreateReverseSequenceOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateZerosLikeOptions(flatbuffers::FlatBufferBuilder &_fbb, const ZerosLikeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateReverseSequenceOptions(flatbuffers::FlatBufferBuilder &_fbb, + const ReverseSequenceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ZerosLikeOptionsT *__o; + const ReverseSequenceOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateZerosLikeOptions(_fbb); + auto _seq_dim = _o->seq_dim; + auto _batch_dim = _o->batch_dim; + return circle::CreateReverseSequenceOptions(_fbb, _seq_dim, _batch_dim); } -inline FillOptionsT *FillOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline MatrixDiagOptionsT * +MatrixDiagOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new FillOptionsT()); + auto _o = std::unique_ptr(new MatrixDiagOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void FillOptions::UnPackTo(FillOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void MatrixDiagOptions::UnPackTo(MatrixDiagOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -FillOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FillOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +MatrixDiagOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MatrixDiagOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateFillOptions(_fbb, _o, _rehasher); + return CreateMatrixDiagOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateFillOptions(flatbuffers::FlatBufferBuilder &_fbb, const FillOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateMatrixDiagOptions(flatbuffers::FlatBufferBuilder &_fbb, const MatrixDiagOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const FillOptionsT *__o; + const MatrixDiagOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateFillOptions(_fbb); + return circle::CreateMatrixDiagOptions(_fbb); } -inline FloorModOptionsT * -FloorModOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline QuantizeOptionsT * +QuantizeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new FloorModOptionsT()); + auto _o = std::unique_ptr(new QuantizeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void FloorModOptions::UnPackTo(FloorModOptionsT *_o, +inline void QuantizeOptions::UnPackTo(QuantizeOptionsT *_o, const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -FloorModOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const FloorModOptionsT *_o, +inline flatbuffers::Offset +QuantizeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const QuantizeOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { - return CreateFloorModOptions(_fbb, _o, _rehasher); + return CreateQuantizeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateFloorModOptions(flatbuffers::FlatBufferBuilder &_fbb, const FloorModOptionsT *_o, +inline flatbuffers::Offset +CreateQuantizeOptions(flatbuffers::FlatBufferBuilder &_fbb, const QuantizeOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; @@ -19244,319 +21069,332 @@ CreateFloorModOptions(flatbuffers::FlatBufferBuilder &_fbb, const FloorModOption struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const FloorModOptionsT *__o; + const QuantizeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateFloorModOptions(_fbb); + return circle::CreateQuantizeOptions(_fbb); } -inline RangeOptionsT *RangeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline MatrixSetDiagOptionsT * +MatrixSetDiagOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new RangeOptionsT()); + auto _o = std::unique_ptr(new MatrixSetDiagOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void RangeOptions::UnPackTo(RangeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void MatrixSetDiagOptions::UnPackTo(MatrixSetDiagOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -RangeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RangeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +MatrixSetDiagOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MatrixSetDiagOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateRangeOptions(_fbb, _o, _rehasher); + return CreateMatrixSetDiagOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateRangeOptions(flatbuffers::FlatBufferBuilder &_fbb, const RangeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateMatrixSetDiagOptions(flatbuffers::FlatBufferBuilder &_fbb, const MatrixSetDiagOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const RangeOptionsT *__o; + const MatrixSetDiagOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateRangeOptions(_fbb); + return circle::CreateMatrixSetDiagOptions(_fbb); } -inline LeakyReluOptionsT * -LeakyReluOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline IfOptionsT *IfOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new LeakyReluOptionsT()); + auto _o = std::unique_ptr(new IfOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void LeakyReluOptions::UnPackTo(LeakyReluOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void IfOptions::UnPackTo(IfOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = alpha(); - _o->alpha = _e; + auto _e = then_subgraph_index(); + _o->then_subgraph_index = _e; + } + { + auto _e = else_subgraph_index(); + _o->else_subgraph_index = _e; } } -inline flatbuffers::Offset -LeakyReluOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const LeakyReluOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +IfOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const IfOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateLeakyReluOptions(_fbb, _o, _rehasher); + return CreateIfOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateLeakyReluOptions(flatbuffers::FlatBufferBuilder &_fbb, const LeakyReluOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateIfOptions(flatbuffers::FlatBufferBuilder &_fbb, const IfOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const LeakyReluOptionsT *__o; + const IfOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _alpha = _o->alpha; - return circle::CreateLeakyReluOptions(_fbb, _alpha); + auto _then_subgraph_index = _o->then_subgraph_index; + auto _else_subgraph_index = _o->else_subgraph_index; + return circle::CreateIfOptions(_fbb, _then_subgraph_index, _else_subgraph_index); } -inline SquaredDifferenceOptionsT * -SquaredDifferenceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline CallOnceOptionsT * +CallOnceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SquaredDifferenceOptionsT()); + auto _o = std::unique_ptr(new CallOnceOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -SquaredDifferenceOptions::UnPackTo(SquaredDifferenceOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void CallOnceOptions::UnPackTo(CallOnceOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = init_subgraph_index(); + _o->init_subgraph_index = _e; + } } -inline flatbuffers::Offset -SquaredDifferenceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const SquaredDifferenceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CallOnceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CallOnceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSquaredDifferenceOptions(_fbb, _o, _rehasher); + return CreateCallOnceOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSquaredDifferenceOptions(flatbuffers::FlatBufferBuilder &_fbb, - const SquaredDifferenceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateCallOnceOptions(flatbuffers::FlatBufferBuilder &_fbb, const CallOnceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SquaredDifferenceOptionsT *__o; + const CallOnceOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateSquaredDifferenceOptions(_fbb); + auto _init_subgraph_index = _o->init_subgraph_index; + return circle::CreateCallOnceOptions(_fbb, _init_subgraph_index); } -inline MirrorPadOptionsT * -MirrorPadOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline WhileOptionsT *WhileOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new MirrorPadOptionsT()); + auto _o = std::unique_ptr(new WhileOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void MirrorPadOptions::UnPackTo(MirrorPadOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void WhileOptions::UnPackTo(WhileOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = mode(); - _o->mode = _e; + auto _e = cond_subgraph_index(); + _o->cond_subgraph_index = _e; + } + { + auto _e = body_subgraph_index(); + _o->body_subgraph_index = _e; } } -inline flatbuffers::Offset -MirrorPadOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MirrorPadOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +WhileOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const WhileOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateMirrorPadOptions(_fbb, _o, _rehasher); + return CreateWhileOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateMirrorPadOptions(flatbuffers::FlatBufferBuilder &_fbb, const MirrorPadOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateWhileOptions(flatbuffers::FlatBufferBuilder &_fbb, const WhileOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const MirrorPadOptionsT *__o; + const WhileOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _mode = _o->mode; - return circle::CreateMirrorPadOptions(_fbb, _mode); + auto _cond_subgraph_index = _o->cond_subgraph_index; + auto _body_subgraph_index = _o->body_subgraph_index; + return circle::CreateWhileOptions(_fbb, _cond_subgraph_index, _body_subgraph_index); } -inline UniqueOptionsT * -UniqueOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline NonMaxSuppressionV4OptionsT * +NonMaxSuppressionV4Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new UniqueOptionsT()); + auto _o = std::unique_ptr(new NonMaxSuppressionV4OptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void UniqueOptions::UnPackTo(UniqueOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +NonMaxSuppressionV4Options::UnPackTo(NonMaxSuppressionV4OptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = idx_out_type(); - _o->idx_out_type = _e; - } } -inline flatbuffers::Offset -UniqueOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const UniqueOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +NonMaxSuppressionV4Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const NonMaxSuppressionV4OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateUniqueOptions(_fbb, _o, _rehasher); + return CreateNonMaxSuppressionV4Options(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateUniqueOptions(flatbuffers::FlatBufferBuilder &_fbb, const UniqueOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateNonMaxSuppressionV4Options(flatbuffers::FlatBufferBuilder &_fbb, + const NonMaxSuppressionV4OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const UniqueOptionsT *__o; + const NonMaxSuppressionV4OptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _idx_out_type = _o->idx_out_type; - return circle::CreateUniqueOptions(_fbb, _idx_out_type); + return circle::CreateNonMaxSuppressionV4Options(_fbb); } -inline ReverseV2OptionsT * -ReverseV2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline NonMaxSuppressionV5OptionsT * +NonMaxSuppressionV5Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ReverseV2OptionsT()); + auto _o = std::unique_ptr(new NonMaxSuppressionV5OptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ReverseV2Options::UnPackTo(ReverseV2OptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +NonMaxSuppressionV5Options::UnPackTo(NonMaxSuppressionV5OptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -ReverseV2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ReverseV2OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +NonMaxSuppressionV5Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const NonMaxSuppressionV5OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateReverseV2Options(_fbb, _o, _rehasher); + return CreateNonMaxSuppressionV5Options(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateReverseV2Options(flatbuffers::FlatBufferBuilder &_fbb, const ReverseV2OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateNonMaxSuppressionV5Options(flatbuffers::FlatBufferBuilder &_fbb, + const NonMaxSuppressionV5OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ReverseV2OptionsT *__o; + const NonMaxSuppressionV5OptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateReverseV2Options(_fbb); + return circle::CreateNonMaxSuppressionV5Options(_fbb); } -inline AddNOptionsT *AddNOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ScatterNdOptionsT * +ScatterNdOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new AddNOptionsT()); + auto _o = std::unique_ptr(new ScatterNdOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void AddNOptions::UnPackTo(AddNOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ScatterNdOptions::UnPackTo(ScatterNdOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -AddNOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AddNOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ScatterNdOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ScatterNdOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateAddNOptions(_fbb, _o, _rehasher); + return CreateScatterNdOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateAddNOptions(flatbuffers::FlatBufferBuilder &_fbb, const AddNOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateScatterNdOptions(flatbuffers::FlatBufferBuilder &_fbb, const ScatterNdOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const AddNOptionsT *__o; + const ScatterNdOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateAddNOptions(_fbb); + return circle::CreateScatterNdOptions(_fbb); } -inline GatherNdOptionsT * -GatherNdOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SelectV2OptionsT * +SelectV2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new GatherNdOptionsT()); + auto _o = std::unique_ptr(new SelectV2OptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void GatherNdOptions::UnPackTo(GatherNdOptionsT *_o, +inline void SelectV2Options::UnPackTo(SelectV2OptionsT *_o, const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -GatherNdOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GatherNdOptionsT *_o, +inline flatbuffers::Offset +SelectV2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SelectV2OptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { - return CreateGatherNdOptions(_fbb, _o, _rehasher); + return CreateSelectV2Options(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateGatherNdOptions(flatbuffers::FlatBufferBuilder &_fbb, const GatherNdOptionsT *_o, +inline flatbuffers::Offset +CreateSelectV2Options(flatbuffers::FlatBufferBuilder &_fbb, const SelectV2OptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; @@ -19564,458 +21402,471 @@ CreateGatherNdOptions(flatbuffers::FlatBufferBuilder &_fbb, const GatherNdOption struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const GatherNdOptionsT *__o; + const SelectV2OptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateGatherNdOptions(_fbb); + return circle::CreateSelectV2Options(_fbb); } -inline WhereOptionsT *WhereOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline DensifyOptionsT * +DensifyOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new WhereOptionsT()); + auto _o = std::unique_ptr(new DensifyOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void WhereOptions::UnPackTo(WhereOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void DensifyOptions::UnPackTo(DensifyOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -WhereOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const WhereOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +DensifyOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DensifyOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateWhereOptions(_fbb, _o, _rehasher); + return CreateDensifyOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateWhereOptions(flatbuffers::FlatBufferBuilder &_fbb, const WhereOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateDensifyOptions(flatbuffers::FlatBufferBuilder &_fbb, const DensifyOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const WhereOptionsT *__o; + const DensifyOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateWhereOptions(_fbb); + return circle::CreateDensifyOptions(_fbb); } -inline ReverseSequenceOptionsT * -ReverseSequenceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SegmentSumOptionsT * +SegmentSumOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ReverseSequenceOptionsT()); + auto _o = std::unique_ptr(new SegmentSumOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -ReverseSequenceOptions::UnPackTo(ReverseSequenceOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SegmentSumOptions::UnPackTo(SegmentSumOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = seq_dim(); - _o->seq_dim = _e; - } - { - auto _e = batch_dim(); - _o->batch_dim = _e; - } } -inline flatbuffers::Offset -ReverseSequenceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const ReverseSequenceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +SegmentSumOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SegmentSumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateReverseSequenceOptions(_fbb, _o, _rehasher); + return CreateSegmentSumOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateReverseSequenceOptions(flatbuffers::FlatBufferBuilder &_fbb, - const ReverseSequenceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSegmentSumOptions(flatbuffers::FlatBufferBuilder &_fbb, const SegmentSumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ReverseSequenceOptionsT *__o; + const SegmentSumOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _seq_dim = _o->seq_dim; - auto _batch_dim = _o->batch_dim; - return circle::CreateReverseSequenceOptions(_fbb, _seq_dim, _batch_dim); + return circle::CreateSegmentSumOptions(_fbb); } -inline MatrixDiagOptionsT * -MatrixDiagOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline BatchMatMulOptionsT * +BatchMatMulOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new MatrixDiagOptionsT()); + auto _o = std::unique_ptr(new BatchMatMulOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void MatrixDiagOptions::UnPackTo(MatrixDiagOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void BatchMatMulOptions::UnPackTo(BatchMatMulOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = adjoint_lhs(); + _o->adjoint_lhs = _e; + } + { + auto _e = adjoint_rhs(); + _o->adjoint_rhs = _e; + } + { + auto _e = asymmetric_quantize_inputs(); + _o->asymmetric_quantize_inputs = _e; + } } -inline flatbuffers::Offset -MatrixDiagOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MatrixDiagOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +BatchMatMulOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BatchMatMulOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateMatrixDiagOptions(_fbb, _o, _rehasher); + return CreateBatchMatMulOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateMatrixDiagOptions(flatbuffers::FlatBufferBuilder &_fbb, const MatrixDiagOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateBatchMatMulOptions(flatbuffers::FlatBufferBuilder &_fbb, const BatchMatMulOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const MatrixDiagOptionsT *__o; + const BatchMatMulOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateMatrixDiagOptions(_fbb); + auto _adjoint_lhs = _o->adjoint_lhs; + auto _adjoint_rhs = _o->adjoint_rhs; + auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; + return circle::CreateBatchMatMulOptions(_fbb, _adjoint_lhs, _adjoint_rhs, + _asymmetric_quantize_inputs); } -inline QuantizeOptionsT * -QuantizeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline CumsumOptionsT * +CumsumOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new QuantizeOptionsT()); + auto _o = std::unique_ptr(new CumsumOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void QuantizeOptions::UnPackTo(QuantizeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void CumsumOptions::UnPackTo(CumsumOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = exclusive(); + _o->exclusive = _e; + } + { + auto _e = reverse(); + _o->reverse = _e; + } } -inline flatbuffers::Offset -QuantizeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const QuantizeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CumsumOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CumsumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateQuantizeOptions(_fbb, _o, _rehasher); + return CreateCumsumOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateQuantizeOptions(flatbuffers::FlatBufferBuilder &_fbb, const QuantizeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateCumsumOptions(flatbuffers::FlatBufferBuilder &_fbb, const CumsumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const QuantizeOptionsT *__o; + const CumsumOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateQuantizeOptions(_fbb); + auto _exclusive = _o->exclusive; + auto _reverse = _o->reverse; + return circle::CreateCumsumOptions(_fbb, _exclusive, _reverse); } -inline MatrixSetDiagOptionsT * -MatrixSetDiagOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline BroadcastToOptionsT * +BroadcastToOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new MatrixSetDiagOptionsT()); + auto _o = std::unique_ptr(new BroadcastToOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void MatrixSetDiagOptions::UnPackTo(MatrixSetDiagOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void BroadcastToOptions::UnPackTo(BroadcastToOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -MatrixSetDiagOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const MatrixSetDiagOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +BroadcastToOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BroadcastToOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateMatrixSetDiagOptions(_fbb, _o, _rehasher); + return CreateBroadcastToOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateMatrixSetDiagOptions(flatbuffers::FlatBufferBuilder &_fbb, const MatrixSetDiagOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateBroadcastToOptions(flatbuffers::FlatBufferBuilder &_fbb, const BroadcastToOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const MatrixSetDiagOptionsT *__o; + const BroadcastToOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateMatrixSetDiagOptions(_fbb); + return circle::CreateBroadcastToOptions(_fbb); } -inline IfOptionsT *IfOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline Rfft2dOptionsT * +Rfft2dOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new IfOptionsT()); + auto _o = std::unique_ptr(new Rfft2dOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void IfOptions::UnPackTo(IfOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void Rfft2dOptions::UnPackTo(Rfft2dOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = then_subgraph_index(); - _o->then_subgraph_index = _e; - } - { - auto _e = else_subgraph_index(); - _o->else_subgraph_index = _e; - } } -inline flatbuffers::Offset -IfOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const IfOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +Rfft2dOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Rfft2dOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateIfOptions(_fbb, _o, _rehasher); + return CreateRfft2dOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateIfOptions(flatbuffers::FlatBufferBuilder &_fbb, const IfOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateRfft2dOptions(flatbuffers::FlatBufferBuilder &_fbb, const Rfft2dOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const IfOptionsT *__o; + const Rfft2dOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _then_subgraph_index = _o->then_subgraph_index; - auto _else_subgraph_index = _o->else_subgraph_index; - return circle::CreateIfOptions(_fbb, _then_subgraph_index, _else_subgraph_index); + return circle::CreateRfft2dOptions(_fbb); } -inline CallOnceOptionsT * -CallOnceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline HashtableOptionsT * +HashtableOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new CallOnceOptionsT()); + auto _o = std::unique_ptr(new HashtableOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void CallOnceOptions::UnPackTo(CallOnceOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void HashtableOptions::UnPackTo(HashtableOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = init_subgraph_index(); - _o->init_subgraph_index = _e; + auto _e = table_id(); + _o->table_id = _e; + } + { + auto _e = key_dtype(); + _o->key_dtype = _e; + } + { + auto _e = value_dtype(); + _o->value_dtype = _e; } } -inline flatbuffers::Offset -CallOnceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CallOnceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +HashtableOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const HashtableOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateCallOnceOptions(_fbb, _o, _rehasher); + return CreateHashtableOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateCallOnceOptions(flatbuffers::FlatBufferBuilder &_fbb, const CallOnceOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateHashtableOptions(flatbuffers::FlatBufferBuilder &_fbb, const HashtableOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const CallOnceOptionsT *__o; + const HashtableOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _init_subgraph_index = _o->init_subgraph_index; - return circle::CreateCallOnceOptions(_fbb, _init_subgraph_index); + auto _table_id = _o->table_id; + auto _key_dtype = _o->key_dtype; + auto _value_dtype = _o->value_dtype; + return circle::CreateHashtableOptions(_fbb, _table_id, _key_dtype, _value_dtype); } -inline WhileOptionsT *WhileOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline HashtableFindOptionsT * +HashtableFindOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new WhileOptionsT()); + auto _o = std::unique_ptr(new HashtableFindOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void WhileOptions::UnPackTo(WhileOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void HashtableFindOptions::UnPackTo(HashtableFindOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = cond_subgraph_index(); - _o->cond_subgraph_index = _e; - } - { - auto _e = body_subgraph_index(); - _o->body_subgraph_index = _e; - } } -inline flatbuffers::Offset -WhileOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const WhileOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +HashtableFindOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const HashtableFindOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateWhileOptions(_fbb, _o, _rehasher); + return CreateHashtableFindOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateWhileOptions(flatbuffers::FlatBufferBuilder &_fbb, const WhileOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateHashtableFindOptions(flatbuffers::FlatBufferBuilder &_fbb, const HashtableFindOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const WhileOptionsT *__o; + const HashtableFindOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _cond_subgraph_index = _o->cond_subgraph_index; - auto _body_subgraph_index = _o->body_subgraph_index; - return circle::CreateWhileOptions(_fbb, _cond_subgraph_index, _body_subgraph_index); + return circle::CreateHashtableFindOptions(_fbb); } -inline NonMaxSuppressionV4OptionsT * -NonMaxSuppressionV4Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline HashtableImportOptionsT * +HashtableImportOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new NonMaxSuppressionV4OptionsT()); + auto _o = std::unique_ptr(new HashtableImportOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } inline void -NonMaxSuppressionV4Options::UnPackTo(NonMaxSuppressionV4OptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +HashtableImportOptions::UnPackTo(HashtableImportOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -NonMaxSuppressionV4Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const NonMaxSuppressionV4OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +HashtableImportOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const HashtableImportOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateNonMaxSuppressionV4Options(_fbb, _o, _rehasher); + return CreateHashtableImportOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateNonMaxSuppressionV4Options(flatbuffers::FlatBufferBuilder &_fbb, - const NonMaxSuppressionV4OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateHashtableImportOptions(flatbuffers::FlatBufferBuilder &_fbb, + const HashtableImportOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const NonMaxSuppressionV4OptionsT *__o; + const HashtableImportOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateNonMaxSuppressionV4Options(_fbb); + return circle::CreateHashtableImportOptions(_fbb); } -inline NonMaxSuppressionV5OptionsT * -NonMaxSuppressionV5Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline HashtableSizeOptionsT * +HashtableSizeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new NonMaxSuppressionV5OptionsT()); + auto _o = std::unique_ptr(new HashtableSizeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -NonMaxSuppressionV5Options::UnPackTo(NonMaxSuppressionV5OptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void HashtableSizeOptions::UnPackTo(HashtableSizeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -NonMaxSuppressionV5Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const NonMaxSuppressionV5OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +HashtableSizeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const HashtableSizeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateNonMaxSuppressionV5Options(_fbb, _o, _rehasher); + return CreateHashtableSizeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateNonMaxSuppressionV5Options(flatbuffers::FlatBufferBuilder &_fbb, - const NonMaxSuppressionV5OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateHashtableSizeOptions(flatbuffers::FlatBufferBuilder &_fbb, const HashtableSizeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const NonMaxSuppressionV5OptionsT *__o; + const HashtableSizeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateNonMaxSuppressionV5Options(_fbb); + return circle::CreateHashtableSizeOptions(_fbb); } -inline ScatterNdOptionsT * -ScatterNdOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline VarHandleOptionsT * +VarHandleOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ScatterNdOptionsT()); + auto _o = std::unique_ptr(new VarHandleOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ScatterNdOptions::UnPackTo(ScatterNdOptionsT *_o, +inline void VarHandleOptions::UnPackTo(VarHandleOptionsT *_o, const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = container(); + if (_e) + _o->container = _e->str(); + } + { + auto _e = shared_name(); + if (_e) + _o->shared_name = _e->str(); + } } -inline flatbuffers::Offset -ScatterNdOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ScatterNdOptionsT *_o, +inline flatbuffers::Offset +VarHandleOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const VarHandleOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { - return CreateScatterNdOptions(_fbb, _o, _rehasher); + return CreateVarHandleOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateScatterNdOptions(flatbuffers::FlatBufferBuilder &_fbb, const ScatterNdOptionsT *_o, +inline flatbuffers::Offset +CreateVarHandleOptions(flatbuffers::FlatBufferBuilder &_fbb, const VarHandleOptionsT *_o, const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; @@ -20023,647 +21874,622 @@ CreateScatterNdOptions(flatbuffers::FlatBufferBuilder &_fbb, const ScatterNdOpti struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ScatterNdOptionsT *__o; + const VarHandleOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateScatterNdOptions(_fbb); + auto _container = _o->container.empty() ? 0 : _fbb.CreateString(_o->container); + auto _shared_name = _o->shared_name.empty() ? 0 : _fbb.CreateString(_o->shared_name); + return circle::CreateVarHandleOptions(_fbb, _container, _shared_name); } -inline SelectV2OptionsT * -SelectV2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ReadVariableOptionsT * +ReadVariableOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SelectV2OptionsT()); + auto _o = std::unique_ptr(new ReadVariableOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SelectV2Options::UnPackTo(SelectV2OptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ReadVariableOptions::UnPackTo(ReadVariableOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -SelectV2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SelectV2OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ReadVariableOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ReadVariableOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSelectV2Options(_fbb, _o, _rehasher); + return CreateReadVariableOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSelectV2Options(flatbuffers::FlatBufferBuilder &_fbb, const SelectV2OptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateReadVariableOptions(flatbuffers::FlatBufferBuilder &_fbb, const ReadVariableOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SelectV2OptionsT *__o; + const ReadVariableOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateSelectV2Options(_fbb); + return circle::CreateReadVariableOptions(_fbb); } -inline DensifyOptionsT * -DensifyOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline AssignVariableOptionsT * +AssignVariableOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new DensifyOptionsT()); + auto _o = std::unique_ptr(new AssignVariableOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void DensifyOptions::UnPackTo(DensifyOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void AssignVariableOptions::UnPackTo(AssignVariableOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -DensifyOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const DensifyOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +AssignVariableOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AssignVariableOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateDensifyOptions(_fbb, _o, _rehasher); + return CreateAssignVariableOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateDensifyOptions(flatbuffers::FlatBufferBuilder &_fbb, const DensifyOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateAssignVariableOptions(flatbuffers::FlatBufferBuilder &_fbb, const AssignVariableOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const DensifyOptionsT *__o; + const AssignVariableOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateDensifyOptions(_fbb); + return circle::CreateAssignVariableOptions(_fbb); } -inline SegmentSumOptionsT * -SegmentSumOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline RandomOptionsT * +RandomOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new SegmentSumOptionsT()); + auto _o = std::unique_ptr(new RandomOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void SegmentSumOptions::UnPackTo(SegmentSumOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void RandomOptions::UnPackTo(RandomOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; + { + auto _e = seed(); + _o->seed = _e; + } + { + auto _e = seed2(); + _o->seed2 = _e; + } } -inline flatbuffers::Offset -SegmentSumOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SegmentSumOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +RandomOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RandomOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateSegmentSumOptions(_fbb, _o, _rehasher); + return CreateRandomOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateSegmentSumOptions(flatbuffers::FlatBufferBuilder &_fbb, const SegmentSumOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateRandomOptions(flatbuffers::FlatBufferBuilder &_fbb, const RandomOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const SegmentSumOptionsT *__o; + const RandomOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateSegmentSumOptions(_fbb); + auto _seed = _o->seed; + auto _seed2 = _o->seed2; + return circle::CreateRandomOptions(_fbb, _seed, _seed2); } -inline BatchMatMulOptionsT * -BatchMatMulOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline BucketizeOptionsT * +BucketizeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new BatchMatMulOptionsT()); + auto _o = std::unique_ptr(new BucketizeOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void BatchMatMulOptions::UnPackTo(BatchMatMulOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void BucketizeOptions::UnPackTo(BucketizeOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = adjoint_lhs(); - _o->adjoint_lhs = _e; - } - { - auto _e = adjoint_rhs(); - _o->adjoint_rhs = _e; - } - { - auto _e = asymmetric_quantize_inputs(); - _o->asymmetric_quantize_inputs = _e; + auto _e = boundaries(); + if (_e) + { + _o->boundaries.resize(_e->size()); + for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) + { + _o->boundaries[_i] = _e->Get(_i); + } + } } } -inline flatbuffers::Offset -BatchMatMulOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BatchMatMulOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +BucketizeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BucketizeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateBatchMatMulOptions(_fbb, _o, _rehasher); + return CreateBucketizeOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateBatchMatMulOptions(flatbuffers::FlatBufferBuilder &_fbb, const BatchMatMulOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateBucketizeOptions(flatbuffers::FlatBufferBuilder &_fbb, const BucketizeOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const BatchMatMulOptionsT *__o; + const BucketizeOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _adjoint_lhs = _o->adjoint_lhs; - auto _adjoint_rhs = _o->adjoint_rhs; - auto _asymmetric_quantize_inputs = _o->asymmetric_quantize_inputs; - return circle::CreateBatchMatMulOptions(_fbb, _adjoint_lhs, _adjoint_rhs, - _asymmetric_quantize_inputs); + auto _boundaries = _o->boundaries.size() ? _fbb.CreateVector(_o->boundaries) : 0; + return circle::CreateBucketizeOptions(_fbb, _boundaries); } -inline CumsumOptionsT * -CumsumOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline GeluOptionsT *GeluOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new CumsumOptionsT()); + auto _o = std::unique_ptr(new GeluOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void CumsumOptions::UnPackTo(CumsumOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void GeluOptions::UnPackTo(GeluOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; { - auto _e = exclusive(); - _o->exclusive = _e; - } - { - auto _e = reverse(); - _o->reverse = _e; + auto _e = approximate(); + _o->approximate = _e; } } -inline flatbuffers::Offset -CumsumOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const CumsumOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +GeluOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const GeluOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateCumsumOptions(_fbb, _o, _rehasher); + return CreateGeluOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateCumsumOptions(flatbuffers::FlatBufferBuilder &_fbb, const CumsumOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateGeluOptions(flatbuffers::FlatBufferBuilder &_fbb, const GeluOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const CumsumOptionsT *__o; + const GeluOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _exclusive = _o->exclusive; - auto _reverse = _o->reverse; - return circle::CreateCumsumOptions(_fbb, _exclusive, _reverse); + auto _approximate = _o->approximate; + return circle::CreateGeluOptions(_fbb, _approximate); } -inline BroadcastToOptionsT * -BroadcastToOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline DynamicUpdateSliceOptionsT * +DynamicUpdateSliceOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new BroadcastToOptionsT()); + auto _o = std::unique_ptr(new DynamicUpdateSliceOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void BroadcastToOptions::UnPackTo(BroadcastToOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +DynamicUpdateSliceOptions::UnPackTo(DynamicUpdateSliceOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -BroadcastToOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BroadcastToOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +DynamicUpdateSliceOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const DynamicUpdateSliceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateBroadcastToOptions(_fbb, _o, _rehasher); + return CreateDynamicUpdateSliceOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateBroadcastToOptions(flatbuffers::FlatBufferBuilder &_fbb, const BroadcastToOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateDynamicUpdateSliceOptions(flatbuffers::FlatBufferBuilder &_fbb, + const DynamicUpdateSliceOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const BroadcastToOptionsT *__o; + const DynamicUpdateSliceOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateBroadcastToOptions(_fbb); + return circle::CreateDynamicUpdateSliceOptions(_fbb); } -inline Rfft2dOptionsT * -Rfft2dOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline UnsortedSegmentProdOptionsT * +UnsortedSegmentProdOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new Rfft2dOptionsT()); + auto _o = std::unique_ptr(new UnsortedSegmentProdOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void Rfft2dOptions::UnPackTo(Rfft2dOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +UnsortedSegmentProdOptions::UnPackTo(UnsortedSegmentProdOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -Rfft2dOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Rfft2dOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +UnsortedSegmentProdOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentProdOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateRfft2dOptions(_fbb, _o, _rehasher); + return CreateUnsortedSegmentProdOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateRfft2dOptions(flatbuffers::FlatBufferBuilder &_fbb, const Rfft2dOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateUnsortedSegmentProdOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentProdOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const Rfft2dOptionsT *__o; + const UnsortedSegmentProdOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateRfft2dOptions(_fbb); + return circle::CreateUnsortedSegmentProdOptions(_fbb); } -inline HashtableOptionsT * -HashtableOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline UnsortedSegmentMaxOptionsT * +UnsortedSegmentMaxOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new HashtableOptionsT()); + auto _o = std::unique_ptr(new UnsortedSegmentMaxOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void HashtableOptions::UnPackTo(HashtableOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +UnsortedSegmentMaxOptions::UnPackTo(UnsortedSegmentMaxOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = table_id(); - _o->table_id = _e; - } - { - auto _e = key_dtype(); - _o->key_dtype = _e; - } - { - auto _e = value_dtype(); - _o->value_dtype = _e; - } } -inline flatbuffers::Offset -HashtableOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const HashtableOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +UnsortedSegmentMaxOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentMaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateHashtableOptions(_fbb, _o, _rehasher); + return CreateUnsortedSegmentMaxOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateHashtableOptions(flatbuffers::FlatBufferBuilder &_fbb, const HashtableOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateUnsortedSegmentMaxOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentMaxOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const HashtableOptionsT *__o; + const UnsortedSegmentMaxOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _table_id = _o->table_id; - auto _key_dtype = _o->key_dtype; - auto _value_dtype = _o->value_dtype; - return circle::CreateHashtableOptions(_fbb, _table_id, _key_dtype, _value_dtype); + return circle::CreateUnsortedSegmentMaxOptions(_fbb); } -inline HashtableFindOptionsT * -HashtableFindOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline UnsortedSegmentSumOptionsT * +UnsortedSegmentSumOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new HashtableFindOptionsT()); + auto _o = std::unique_ptr(new UnsortedSegmentSumOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void HashtableFindOptions::UnPackTo(HashtableFindOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +UnsortedSegmentSumOptions::UnPackTo(UnsortedSegmentSumOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -HashtableFindOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const HashtableFindOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +UnsortedSegmentSumOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentSumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateHashtableFindOptions(_fbb, _o, _rehasher); + return CreateUnsortedSegmentSumOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateHashtableFindOptions(flatbuffers::FlatBufferBuilder &_fbb, const HashtableFindOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateUnsortedSegmentSumOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentSumOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const HashtableFindOptionsT *__o; + const UnsortedSegmentSumOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateHashtableFindOptions(_fbb); + return circle::CreateUnsortedSegmentSumOptions(_fbb); } -inline HashtableImportOptionsT * -HashtableImportOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline ATan2OptionsT *ATan2Options::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new HashtableImportOptionsT()); + auto _o = std::unique_ptr(new ATan2OptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void -HashtableImportOptions::UnPackTo(HashtableImportOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void ATan2Options::UnPackTo(ATan2OptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -HashtableImportOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, - const HashtableImportOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +ATan2Options::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ATan2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateHashtableImportOptions(_fbb, _o, _rehasher); + return CreateATan2Options(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateHashtableImportOptions(flatbuffers::FlatBufferBuilder &_fbb, - const HashtableImportOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateATan2Options(flatbuffers::FlatBufferBuilder &_fbb, const ATan2OptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const HashtableImportOptionsT *__o; + const ATan2OptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateHashtableImportOptions(_fbb); + return circle::CreateATan2Options(_fbb); } -inline HashtableSizeOptionsT * -HashtableSizeOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline UnsortedSegmentMinOptionsT * +UnsortedSegmentMinOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new HashtableSizeOptionsT()); + auto _o = std::unique_ptr(new UnsortedSegmentMinOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void HashtableSizeOptions::UnPackTo(HashtableSizeOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void +UnsortedSegmentMinOptions::UnPackTo(UnsortedSegmentMinOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -HashtableSizeOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const HashtableSizeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +UnsortedSegmentMinOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentMinOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateHashtableSizeOptions(_fbb, _o, _rehasher); + return CreateUnsortedSegmentMinOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateHashtableSizeOptions(flatbuffers::FlatBufferBuilder &_fbb, const HashtableSizeOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateUnsortedSegmentMinOptions(flatbuffers::FlatBufferBuilder &_fbb, + const UnsortedSegmentMinOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const HashtableSizeOptionsT *__o; + const UnsortedSegmentMinOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateHashtableSizeOptions(_fbb); + return circle::CreateUnsortedSegmentMinOptions(_fbb); } -inline VarHandleOptionsT * -VarHandleOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline SignOptionsT *SignOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new VarHandleOptionsT()); + auto _o = std::unique_ptr(new SignOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void VarHandleOptions::UnPackTo(VarHandleOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void SignOptions::UnPackTo(SignOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = container(); - if (_e) - _o->container = _e->str(); - } - { - auto _e = shared_name(); - if (_e) - _o->shared_name = _e->str(); - } -} - -inline flatbuffers::Offset -VarHandleOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const VarHandleOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +} + +inline flatbuffers::Offset +SignOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const SignOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateVarHandleOptions(_fbb, _o, _rehasher); + return CreateSignOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateVarHandleOptions(flatbuffers::FlatBufferBuilder &_fbb, const VarHandleOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateSignOptions(flatbuffers::FlatBufferBuilder &_fbb, const SignOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const VarHandleOptionsT *__o; + const SignOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _container = _o->container.empty() ? 0 : _fbb.CreateString(_o->container); - auto _shared_name = _o->shared_name.empty() ? 0 : _fbb.CreateString(_o->shared_name); - return circle::CreateVarHandleOptions(_fbb, _container, _shared_name); + return circle::CreateSignOptions(_fbb); } -inline ReadVariableOptionsT * -ReadVariableOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline BitcastOptionsT * +BitcastOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new ReadVariableOptionsT()); + auto _o = std::unique_ptr(new BitcastOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void ReadVariableOptions::UnPackTo(ReadVariableOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void BitcastOptions::UnPackTo(BitcastOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -ReadVariableOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const ReadVariableOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +BitcastOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BitcastOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateReadVariableOptions(_fbb, _o, _rehasher); + return CreateBitcastOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateReadVariableOptions(flatbuffers::FlatBufferBuilder &_fbb, const ReadVariableOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateBitcastOptions(flatbuffers::FlatBufferBuilder &_fbb, const BitcastOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const ReadVariableOptionsT *__o; + const BitcastOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateReadVariableOptions(_fbb); + return circle::CreateBitcastOptions(_fbb); } -inline AssignVariableOptionsT * -AssignVariableOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline BitwiseXorOptionsT * +BitwiseXorOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new AssignVariableOptionsT()); + auto _o = std::unique_ptr(new BitwiseXorOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void AssignVariableOptions::UnPackTo(AssignVariableOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void BitwiseXorOptions::UnPackTo(BitwiseXorOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; } -inline flatbuffers::Offset -AssignVariableOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const AssignVariableOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +BitwiseXorOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const BitwiseXorOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateAssignVariableOptions(_fbb, _o, _rehasher); + return CreateBitwiseXorOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateAssignVariableOptions(flatbuffers::FlatBufferBuilder &_fbb, const AssignVariableOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateBitwiseXorOptions(flatbuffers::FlatBufferBuilder &_fbb, const BitwiseXorOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const AssignVariableOptionsT *__o; + const BitwiseXorOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - return circle::CreateAssignVariableOptions(_fbb); + return circle::CreateBitwiseXorOptions(_fbb); } -inline RandomOptionsT * -RandomOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const +inline RightShiftOptionsT * +RightShiftOptions::UnPack(const flatbuffers::resolver_function_t *_resolver) const { - auto _o = std::unique_ptr(new RandomOptionsT()); + auto _o = std::unique_ptr(new RightShiftOptionsT()); UnPackTo(_o.get(), _resolver); return _o.release(); } -inline void RandomOptions::UnPackTo(RandomOptionsT *_o, - const flatbuffers::resolver_function_t *_resolver) const +inline void RightShiftOptions::UnPackTo(RightShiftOptionsT *_o, + const flatbuffers::resolver_function_t *_resolver) const { (void)_o; (void)_resolver; - { - auto _e = seed(); - _o->seed = _e; - } - { - auto _e = seed2(); - _o->seed2 = _e; - } } -inline flatbuffers::Offset -RandomOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RandomOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +RightShiftOptions::Pack(flatbuffers::FlatBufferBuilder &_fbb, const RightShiftOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { - return CreateRandomOptions(_fbb, _o, _rehasher); + return CreateRightShiftOptions(_fbb, _o, _rehasher); } -inline flatbuffers::Offset -CreateRandomOptions(flatbuffers::FlatBufferBuilder &_fbb, const RandomOptionsT *_o, - const flatbuffers::rehasher_function_t *_rehasher) +inline flatbuffers::Offset +CreateRightShiftOptions(flatbuffers::FlatBufferBuilder &_fbb, const RightShiftOptionsT *_o, + const flatbuffers::rehasher_function_t *_rehasher) { (void)_rehasher; (void)_o; struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; - const RandomOptionsT *__o; + const RightShiftOptionsT *__o; const flatbuffers::rehasher_function_t *__rehasher; } _va = {&_fbb, _o, _rehasher}; (void)_va; - auto _seed = _o->seed; - auto _seed2 = _o->seed2; - return circle::CreateRandomOptions(_fbb, _seed, _seed2); + return circle::CreateRightShiftOptions(_fbb); } inline BCQGatherOptionsT * @@ -22333,6 +24159,66 @@ inline bool VerifyBuiltinOptions(flatbuffers::Verifier &verifier, const void *ob auto ptr = reinterpret_cast(obj); return verifier.VerifyTable(ptr); } + case BuiltinOptions_BucketizeOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_GeluOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_DynamicUpdateSliceOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_UnsortedSegmentProdOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_UnsortedSegmentMaxOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_UnsortedSegmentMinOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_UnsortedSegmentSumOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_ATan2Options: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_SignOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_BitcastOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_BitwiseXorOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } + case BuiltinOptions_RightShiftOptions: + { + auto ptr = reinterpret_cast(obj); + return verifier.VerifyTable(ptr); + } case BuiltinOptions_BCQGatherOptions: { auto ptr = reinterpret_cast(obj); @@ -22946,6 +24832,66 @@ inline void *BuiltinOptionsUnion::UnPack(const void *obj, BuiltinOptions type, auto ptr = reinterpret_cast(obj); return ptr->UnPack(resolver); } + case BuiltinOptions_BucketizeOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_GeluOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_DynamicUpdateSliceOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_UnsortedSegmentProdOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_UnsortedSegmentMaxOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_UnsortedSegmentMinOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_UnsortedSegmentSumOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_ATan2Options: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_SignOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_BitcastOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_BitwiseXorOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } + case BuiltinOptions_RightShiftOptions: + { + auto ptr = reinterpret_cast(obj); + return ptr->UnPack(resolver); + } case BuiltinOptions_BCQGatherOptions: { auto ptr = reinterpret_cast(obj); @@ -23542,6 +25488,66 @@ BuiltinOptionsUnion::Pack(flatbuffers::FlatBufferBuilder &_fbb, auto ptr = reinterpret_cast(value); return CreateRandomOptions(_fbb, ptr, _rehasher).Union(); } + case BuiltinOptions_BucketizeOptions: + { + auto ptr = reinterpret_cast(value); + return CreateBucketizeOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_GeluOptions: + { + auto ptr = reinterpret_cast(value); + return CreateGeluOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_DynamicUpdateSliceOptions: + { + auto ptr = reinterpret_cast(value); + return CreateDynamicUpdateSliceOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_UnsortedSegmentProdOptions: + { + auto ptr = reinterpret_cast(value); + return CreateUnsortedSegmentProdOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_UnsortedSegmentMaxOptions: + { + auto ptr = reinterpret_cast(value); + return CreateUnsortedSegmentMaxOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_UnsortedSegmentMinOptions: + { + auto ptr = reinterpret_cast(value); + return CreateUnsortedSegmentMinOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_UnsortedSegmentSumOptions: + { + auto ptr = reinterpret_cast(value); + return CreateUnsortedSegmentSumOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_ATan2Options: + { + auto ptr = reinterpret_cast(value); + return CreateATan2Options(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_SignOptions: + { + auto ptr = reinterpret_cast(value); + return CreateSignOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_BitcastOptions: + { + auto ptr = reinterpret_cast(value); + return CreateBitcastOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_BitwiseXorOptions: + { + auto ptr = reinterpret_cast(value); + return CreateBitwiseXorOptions(_fbb, ptr, _rehasher).Union(); + } + case BuiltinOptions_RightShiftOptions: + { + auto ptr = reinterpret_cast(value); + return CreateRightShiftOptions(_fbb, ptr, _rehasher).Union(); + } case BuiltinOptions_BCQGatherOptions: { auto ptr = reinterpret_cast(value); @@ -24190,6 +26196,74 @@ inline BuiltinOptionsUnion::BuiltinOptionsUnion(const BuiltinOptionsUnion &u) value = new circle::RandomOptionsT(*reinterpret_cast(u.value)); break; } + case BuiltinOptions_BucketizeOptions: + { + value = + new circle::BucketizeOptionsT(*reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_GeluOptions: + { + value = new circle::GeluOptionsT(*reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_DynamicUpdateSliceOptions: + { + value = new circle::DynamicUpdateSliceOptionsT( + *reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_UnsortedSegmentProdOptions: + { + value = new circle::UnsortedSegmentProdOptionsT( + *reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_UnsortedSegmentMaxOptions: + { + value = new circle::UnsortedSegmentMaxOptionsT( + *reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_UnsortedSegmentMinOptions: + { + value = new circle::UnsortedSegmentMinOptionsT( + *reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_UnsortedSegmentSumOptions: + { + value = new circle::UnsortedSegmentSumOptionsT( + *reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_ATan2Options: + { + value = new circle::ATan2OptionsT(*reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_SignOptions: + { + value = new circle::SignOptionsT(*reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_BitcastOptions: + { + value = new circle::BitcastOptionsT(*reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_BitwiseXorOptions: + { + value = + new circle::BitwiseXorOptionsT(*reinterpret_cast(u.value)); + break; + } + case BuiltinOptions_RightShiftOptions: + { + value = + new circle::RightShiftOptionsT(*reinterpret_cast(u.value)); + break; + } case BuiltinOptions_BCQGatherOptions: { value = @@ -24901,6 +26975,78 @@ inline void BuiltinOptionsUnion::Reset() delete ptr; break; } + case BuiltinOptions_BucketizeOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_GeluOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_DynamicUpdateSliceOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_UnsortedSegmentProdOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_UnsortedSegmentMaxOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_UnsortedSegmentMinOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_UnsortedSegmentSumOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_ATan2Options: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_SignOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_BitcastOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_BitwiseXorOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } + case BuiltinOptions_RightShiftOptions: + { + auto ptr = reinterpret_cast(value); + delete ptr; + break; + } case BuiltinOptions_BCQGatherOptions: { auto ptr = reinterpret_cast(value);