From cae78062ce567c051752833076cab0569f09f3a8 Mon Sep 17 00:00:00 2001 From: dboyliao Date: Wed, 6 May 2020 16:31:20 +0800 Subject: [PATCH] remove frontend.tflite_flatbuffer module and update imports --- utensor_cgen/frontend/tflite.py | 29 ++-- .../frontend/tflite_flatbuffer/AbsOptions.py | 22 --- .../ActivationFunctionType.py | 12 -- .../frontend/tflite_flatbuffer/AddNOptions.py | 22 --- .../frontend/tflite_flatbuffer/AddOptions.py | 30 ---- .../tflite_flatbuffer/ArgMaxOptions.py | 30 ---- .../tflite_flatbuffer/ArgMinOptions.py | 30 ---- .../BatchToSpaceNDOptions.py | 22 --- .../BidirectionalSequenceLSTMOptions.py | 62 ------- .../BidirectionalSequenceRNNOptions.py | 46 ------ .../frontend/tflite_flatbuffer/Buffer.py | 46 ------ .../tflite_flatbuffer/BuiltinOperator.py | 121 -------------- .../tflite_flatbuffer/BuiltinOptions.py | 97 ----------- .../frontend/tflite_flatbuffer/CallOptions.py | 30 ---- .../frontend/tflite_flatbuffer/CastOptions.py | 38 ----- .../tflite_flatbuffer/CombinerType.py | 9 -- .../ConcatEmbeddingsOptions.py | 78 --------- .../tflite_flatbuffer/ConcatenationOptions.py | 38 ----- .../tflite_flatbuffer/Conv2DOptions.py | 70 -------- .../frontend/tflite_flatbuffer/CosOptions.py | 22 --- .../tflite_flatbuffer/CustomOptionsFormat.py | 7 - .../tflite_flatbuffer/CustomQuantization.py | 46 ------ .../DepthwiseConv2DOptions.py | 78 --------- .../tflite_flatbuffer/DequantizeOptions.py | 22 --- .../frontend/tflite_flatbuffer/DivOptions.py | 30 ---- .../EmbeddingLookupSparseOptions.py | 30 ---- .../tflite_flatbuffer/EqualOptions.py | 22 --- .../frontend/tflite_flatbuffer/ExpOptions.py | 22 --- .../tflite_flatbuffer/ExpandDimsOptions.py | 22 --- .../tflite_flatbuffer/FakeQuantOptions.py | 54 ------- .../frontend/tflite_flatbuffer/FillOptions.py | 22 --- .../tflite_flatbuffer/FloorDivOptions.py | 22 --- .../tflite_flatbuffer/FloorModOptions.py | 22 --- .../FullyConnectedOptions.py | 38 ----- .../FullyConnectedOptionsWeightsFormat.py | 8 - .../tflite_flatbuffer/GatherNdOptions.py | 22 --- .../tflite_flatbuffer/GatherOptions.py | 30 ---- .../tflite_flatbuffer/GreaterEqualOptions.py | 22 --- .../tflite_flatbuffer/GreaterOptions.py | 22 --- .../tflite_flatbuffer/L2NormOptions.py | 30 ---- .../tflite_flatbuffer/LSHProjectionOptions.py | 30 ---- .../tflite_flatbuffer/LSHProjectionType.py | 9 -- .../tflite_flatbuffer/LSTMKernelType.py | 8 - .../frontend/tflite_flatbuffer/LSTMOptions.py | 54 ------- .../tflite_flatbuffer/LeakyReluOptions.py | 30 ---- .../tflite_flatbuffer/LessEqualOptions.py | 22 --- .../frontend/tflite_flatbuffer/LessOptions.py | 22 --- .../LocalResponseNormalizationOptions.py | 54 ------- .../tflite_flatbuffer/LogSoftmaxOptions.py | 22 --- .../tflite_flatbuffer/LogicalAndOptions.py | 22 --- .../tflite_flatbuffer/LogicalNotOptions.py | 22 --- .../tflite_flatbuffer/LogicalOrOptions.py | 22 --- .../tflite_flatbuffer/MatrixDiagOptions.py | 22 --- .../tflite_flatbuffer/MatrixSetDiagOptions.py | 22 --- .../MaximumMinimumOptions.py | 22 --- .../tflite_flatbuffer/MirrorPadMode.py | 8 - .../tflite_flatbuffer/MirrorPadOptions.py | 30 ---- .../frontend/tflite_flatbuffer/Model.py | 128 --------------- .../frontend/tflite_flatbuffer/MulOptions.py | 30 ---- .../frontend/tflite_flatbuffer/NegOptions.py | 22 --- .../tflite_flatbuffer/NotEqualOptions.py | 22 --- .../tflite_flatbuffer/OneHotOptions.py | 30 ---- .../frontend/tflite_flatbuffer/Operator.py | 153 ------------------ .../tflite_flatbuffer/OperatorCode.py | 46 ------ .../frontend/tflite_flatbuffer/PackOptions.py | 38 ----- .../frontend/tflite_flatbuffer/PadOptions.py | 22 --- .../tflite_flatbuffer/PadV2Options.py | 22 --- .../frontend/tflite_flatbuffer/Padding.py | 8 - .../tflite_flatbuffer/Pool2DOptions.py | 70 -------- .../frontend/tflite_flatbuffer/PowOptions.py | 22 --- .../tflite_flatbuffer/QuantizationDetails.py | 8 - .../QuantizationParameters.py | 145 ----------------- .../tflite_flatbuffer/QuantizeOptions.py | 22 --- .../frontend/tflite_flatbuffer/RNNOptions.py | 30 ---- .../tflite_flatbuffer/RangeOptions.py | 22 --- .../frontend/tflite_flatbuffer/RankOptions.py | 22 --- .../tflite_flatbuffer/ReducerOptions.py | 30 ---- .../tflite_flatbuffer/ReshapeOptions.py | 46 ------ .../ResizeBilinearOptions.py | 30 ---- .../ResizeNearestNeighborOptions.py | 30 ---- .../ReverseSequenceOptions.py | 38 ----- .../tflite_flatbuffer/ReverseV2Options.py | 22 --- .../frontend/tflite_flatbuffer/SVDFOptions.py | 38 ----- .../tflite_flatbuffer/SelectOptions.py | 22 --- .../tflite_flatbuffer/SequenceRNNOptions.py | 38 ----- .../tflite_flatbuffer/ShapeOptions.py | 30 ---- .../tflite_flatbuffer/SkipGramOptions.py | 46 ------ .../tflite_flatbuffer/SliceOptions.py | 22 --- .../tflite_flatbuffer/SoftmaxOptions.py | 30 ---- .../SpaceToBatchNDOptions.py | 22 --- .../tflite_flatbuffer/SpaceToDepthOptions.py | 30 ---- .../tflite_flatbuffer/SparseToDenseOptions.py | 30 ---- .../tflite_flatbuffer/SplitOptions.py | 30 ---- .../tflite_flatbuffer/SplitVOptions.py | 30 ---- .../tflite_flatbuffer/SquareOptions.py | 22 --- .../SquaredDifferenceOptions.py | 22 --- .../tflite_flatbuffer/SqueezeOptions.py | 46 ------ .../tflite_flatbuffer/StridedSliceOptions.py | 62 ------- .../frontend/tflite_flatbuffer/SubGraph.py | 122 -------------- .../frontend/tflite_flatbuffer/SubOptions.py | 30 ---- .../frontend/tflite_flatbuffer/Tensor.py | 90 ----------- .../frontend/tflite_flatbuffer/TensorType.py | 16 -- .../frontend/tflite_flatbuffer/TileOptions.py | 22 --- .../tflite_flatbuffer/TopKV2Options.py | 22 --- .../tflite_flatbuffer/TransposeConvOptions.py | 46 ------ .../tflite_flatbuffer/TransposeOptions.py | 22 --- .../UnidirectionalSequenceLSTMOptions.py | 54 ------- .../tflite_flatbuffer/UniqueOptions.py | 30 ---- .../tflite_flatbuffer/UnpackOptions.py | 38 ----- .../tflite_flatbuffer/WhereOptions.py | 22 --- .../tflite_flatbuffer/ZerosLikeOptions.py | 22 --- .../__init__.py | 0 112 files changed, 15 insertions(+), 3945 deletions(-) delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/AbsOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ActivationFunctionType.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/AddNOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/AddOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ArgMaxOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ArgMinOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/BatchToSpaceNDOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/BidirectionalSequenceLSTMOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/BidirectionalSequenceRNNOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/Buffer.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/BuiltinOperator.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/BuiltinOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/CallOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/CastOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/CombinerType.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ConcatEmbeddingsOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ConcatenationOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/Conv2DOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/CosOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/CustomOptionsFormat.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/CustomQuantization.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/DepthwiseConv2DOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/DequantizeOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/DivOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/EmbeddingLookupSparseOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/EqualOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ExpOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ExpandDimsOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/FakeQuantOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/FillOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/FloorDivOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/FloorModOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/FullyConnectedOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/FullyConnectedOptionsWeightsFormat.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/GatherNdOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/GatherOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/GreaterEqualOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/GreaterOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/L2NormOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LSHProjectionOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LSHProjectionType.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LSTMKernelType.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LSTMOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LeakyReluOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LessEqualOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LessOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LocalResponseNormalizationOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LogSoftmaxOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LogicalAndOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LogicalNotOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/LogicalOrOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/MatrixDiagOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/MatrixSetDiagOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/MaximumMinimumOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/MirrorPadMode.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/MirrorPadOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/Model.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/MulOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/NegOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/NotEqualOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/OneHotOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/Operator.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/OperatorCode.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/PackOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/PadOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/PadV2Options.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/Padding.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/Pool2DOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/PowOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/QuantizationDetails.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/QuantizationParameters.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/QuantizeOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/RNNOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/RangeOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/RankOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ReducerOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ReshapeOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ResizeBilinearOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ResizeNearestNeighborOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ReverseSequenceOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ReverseV2Options.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SVDFOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SelectOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SequenceRNNOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ShapeOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SkipGramOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SliceOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SoftmaxOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SpaceToBatchNDOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SpaceToDepthOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SparseToDenseOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SplitOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SplitVOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SquareOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SquaredDifferenceOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SqueezeOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/StridedSliceOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SubGraph.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/SubOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/Tensor.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/TensorType.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/TileOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/TopKV2Options.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/TransposeConvOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/TransposeOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/UnidirectionalSequenceLSTMOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/UniqueOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/UnpackOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/WhereOptions.py delete mode 100644 utensor_cgen/frontend/tflite_flatbuffer/ZerosLikeOptions.py rename utensor_cgen/{frontend/tflite_flatbuffer => third_party}/__init__.py (100%) diff --git a/utensor_cgen/frontend/tflite.py b/utensor_cgen/frontend/tflite.py index fc474f96..cf169a1e 100644 --- a/utensor_cgen/frontend/tflite.py +++ b/utensor_cgen/frontend/tflite.py @@ -8,14 +8,15 @@ from utensor_cgen.ir.base import OperationInfo, TensorInfo, uTensorGraph from utensor_cgen.ir.converter import (AttrValueConverter, GenericTensorConverterMixin) -from utensor_cgen.utils import topologic_order_graph - -from .tflite_flatbuffer.ActivationFunctionType import ActivationFunctionType -from .tflite_flatbuffer.BuiltinOperator import BuiltinOperator -from .tflite_flatbuffer.CustomOptionsFormat import CustomOptionsFormat -from .tflite_flatbuffer.FullyConnectedOptionsWeightsFormat import \ +from utensor_cgen.third_party.tflite.ActivationFunctionType import \ + ActivationFunctionType +from utensor_cgen.third_party.tflite.BuiltinOperator import BuiltinOperator +from utensor_cgen.third_party.tflite.CustomOptionsFormat import \ + CustomOptionsFormat +from utensor_cgen.third_party.tflite.FullyConnectedOptionsWeightsFormat import \ FullyConnectedOptionsWeightsFormat -from .tflite_flatbuffer.Model import Model +from utensor_cgen.third_party.tflite.Model import Model +from utensor_cgen.utils import topologic_order_graph _CUSTOM_OPTION_FORMAT_MAP = {v: k for k, v in CustomOptionsFormat.__dict__.items()} @@ -27,7 +28,7 @@ def class_option2str(obj, idx): def fully_connected_op_data(op): option_dict = {} if op.CustomOptionsLength() < 1: - from .tflite_flatbuffer.FullyConnectedOptions import FullyConnectedOptions + from utensor_cgen.third_party.tflite.FullyConnectedOptions import FullyConnectedOptions option = FullyConnectedOptions() builtin_data = op.BuiltinOptions() @@ -47,7 +48,7 @@ def fully_connected_op_data(op): def depthwise_conv2d_op_data(op): option_dict = {} if op.CustomOptionsLength() < 1: - from .tflite_flatbuffer.DepthwiseConv2DOptions import DepthwiseConv2DOptions + from utensor_cgen.third_party.tflite.DepthwiseConv2DOptions import DepthwiseConv2DOptions option = DepthwiseConv2DOptions() builtin_data = op.BuiltinOptions() @@ -72,7 +73,7 @@ def depthwise_conv2d_op_data(op): def reshape_op_data(op): option_dict = {} if op.CustomOptionsLength() < 1: - from .tflite_flatbuffer.ReshapeOptions import ReshapeOptions + from utensor_cgen.third_party.tflite.ReshapeOptions import ReshapeOptions option = ReshapeOptions() builtin_data = op.BuiltinOptions() @@ -88,7 +89,7 @@ def reshape_op_data(op): def dequantize_op_data(op): option_dict = {} if op.CustomOptionsLength() < 1: - from .tflite_flatbuffer.DequantizeOptions import DequantizeOptions + from utensor_cgen.third_party.tflite.DequantizeOptions import DequantizeOptions option = DequantizeOptions() builtin_data = op.BuiltinOptions() @@ -106,7 +107,7 @@ def dequantize_op_data(op): def quantize_op_data(op): option_dict = {} if op.CustomOptionsLength() < 1: - from .tflite_flatbuffer.QuantizeOptions import QuantizeOptions + from utensor_cgen.third_party.tflite.QuantizeOptions import QuantizeOptions option = QuantizeOptions() builtin_data = op.BuiltinOptions() @@ -124,7 +125,7 @@ def quantize_op_data(op): def pool2d_op_data(op): option_dict = {} if op.CustomOptionsLength() < 1: - from .tflite_flatbuffer.Pool2DOptions import Pool2DOptions + from utensor_cgen.third_party.tflite.Pool2DOptions import Pool2DOptions option = Pool2DOptions() builtin_data = op.BuiltinOptions() @@ -147,7 +148,7 @@ def pool2d_op_data(op): def argmax_op_data(op): option_dict = {} if op.CustomOptionsLength() < 1: - from .tflite_flatbuffer.ArgMaxOptions import ArgMaxOptions + from utensor_cgen.third_party.tflite.ArgMaxOptions import ArgMaxOptions option = ArgMaxOptions() builtin_data = op.BuiltinOptions() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/AbsOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/AbsOptions.py deleted file mode 100644 index 0cbfb8c0..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/AbsOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class AbsOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsAbsOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = AbsOptions() - x.Init(buf, n + offset) - return x - - # AbsOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def AbsOptionsStart(builder): builder.StartObject(0) -def AbsOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ActivationFunctionType.py b/utensor_cgen/frontend/tflite_flatbuffer/ActivationFunctionType.py deleted file mode 100644 index dc177dee..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ActivationFunctionType.py +++ /dev/null @@ -1,12 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class ActivationFunctionType(object): - NONE = 0 - RELU = 1 - RELU_N1_TO_1 = 2 - RELU6 = 3 - TANH = 4 - SIGN_BIT = 5 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/AddNOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/AddNOptions.py deleted file mode 100644 index b5c2ddb7..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/AddNOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class AddNOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsAddNOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = AddNOptions() - x.Init(buf, n + offset) - return x - - # AddNOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def AddNOptionsStart(builder): builder.StartObject(0) -def AddNOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/AddOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/AddOptions.py deleted file mode 100644 index d6cbfcf5..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/AddOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class AddOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsAddOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = AddOptions() - x.Init(buf, n + offset) - return x - - # AddOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # AddOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def AddOptionsStart(builder): builder.StartObject(1) -def AddOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ArgMaxOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ArgMaxOptions.py deleted file mode 100644 index fbf1415e..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ArgMaxOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ArgMaxOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsArgMaxOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ArgMaxOptions() - x.Init(buf, n + offset) - return x - - # ArgMaxOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ArgMaxOptions - def OutputType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def ArgMaxOptionsStart(builder): builder.StartObject(1) -def ArgMaxOptionsAddOutputType(builder, outputType): builder.PrependInt8Slot(0, outputType, 0) -def ArgMaxOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ArgMinOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ArgMinOptions.py deleted file mode 100644 index 120fdca2..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ArgMinOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ArgMinOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsArgMinOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ArgMinOptions() - x.Init(buf, n + offset) - return x - - # ArgMinOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ArgMinOptions - def OutputType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def ArgMinOptionsStart(builder): builder.StartObject(1) -def ArgMinOptionsAddOutputType(builder, outputType): builder.PrependInt8Slot(0, outputType, 0) -def ArgMinOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/BatchToSpaceNDOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/BatchToSpaceNDOptions.py deleted file mode 100644 index 3ddcfd3f..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/BatchToSpaceNDOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class BatchToSpaceNDOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsBatchToSpaceNDOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = BatchToSpaceNDOptions() - x.Init(buf, n + offset) - return x - - # BatchToSpaceNDOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def BatchToSpaceNDOptionsStart(builder): builder.StartObject(0) -def BatchToSpaceNDOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/BidirectionalSequenceLSTMOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/BidirectionalSequenceLSTMOptions.py deleted file mode 100644 index 8d8b7bea..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/BidirectionalSequenceLSTMOptions.py +++ /dev/null @@ -1,62 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class BidirectionalSequenceLSTMOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsBidirectionalSequenceLSTMOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = BidirectionalSequenceLSTMOptions() - x.Init(buf, n + offset) - return x - - # BidirectionalSequenceLSTMOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # BidirectionalSequenceLSTMOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # BidirectionalSequenceLSTMOptions - def CellClip(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # BidirectionalSequenceLSTMOptions - def ProjClip(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # BidirectionalSequenceLSTMOptions - def MergeOutputs(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - - # BidirectionalSequenceLSTMOptions - def TimeMajor(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return True - -def BidirectionalSequenceLSTMOptionsStart(builder): builder.StartObject(5) -def BidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def BidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) -def BidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) -def BidirectionalSequenceLSTMOptionsAddMergeOutputs(builder, mergeOutputs): builder.PrependBoolSlot(3, mergeOutputs, 0) -def BidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(4, timeMajor, 1) -def BidirectionalSequenceLSTMOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/BidirectionalSequenceRNNOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/BidirectionalSequenceRNNOptions.py deleted file mode 100644 index 673af6b9..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/BidirectionalSequenceRNNOptions.py +++ /dev/null @@ -1,46 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class BidirectionalSequenceRNNOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsBidirectionalSequenceRNNOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = BidirectionalSequenceRNNOptions() - x.Init(buf, n + offset) - return x - - # BidirectionalSequenceRNNOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # BidirectionalSequenceRNNOptions - def TimeMajor(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - - # BidirectionalSequenceRNNOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # BidirectionalSequenceRNNOptions - def MergeOutputs(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def BidirectionalSequenceRNNOptionsStart(builder): builder.StartObject(3) -def BidirectionalSequenceRNNOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(0, timeMajor, 0) -def BidirectionalSequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) -def BidirectionalSequenceRNNOptionsAddMergeOutputs(builder, mergeOutputs): builder.PrependBoolSlot(2, mergeOutputs, 0) -def BidirectionalSequenceRNNOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/Buffer.py b/utensor_cgen/frontend/tflite_flatbuffer/Buffer.py deleted file mode 100644 index 754dee3b..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/Buffer.py +++ /dev/null @@ -1,46 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class Buffer(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsBuffer(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = Buffer() - x.Init(buf, n + offset) - return x - - # Buffer - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # Buffer - def Data(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Uint8Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1)) - return 0 - - # Buffer - def DataAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint8Flags, o) - return 0 - - # Buffer - def DataLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - -def BufferStart(builder): builder.StartObject(1) -def BufferAddData(builder, data): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(data), 0) -def BufferStartDataVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def BufferEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/BuiltinOperator.py b/utensor_cgen/frontend/tflite_flatbuffer/BuiltinOperator.py deleted file mode 100644 index 229e1270..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/BuiltinOperator.py +++ /dev/null @@ -1,121 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class BuiltinOperator(object): - ADD = 0 - AVERAGE_POOL_2D = 1 - CONCATENATION = 2 - CONV_2D = 3 - DEPTHWISE_CONV_2D = 4 - DEQUANTIZE = 6 - EMBEDDING_LOOKUP = 7 - FLOOR = 8 - FULLY_CONNECTED = 9 - HASHTABLE_LOOKUP = 10 - L2_NORMALIZATION = 11 - L2_POOL_2D = 12 - LOCAL_RESPONSE_NORMALIZATION = 13 - LOGISTIC = 14 - LSH_PROJECTION = 15 - LSTM = 16 - MAX_POOL_2D = 17 - MUL = 18 - RELU = 19 - RELU_N1_TO_1 = 20 - RELU6 = 21 - RESHAPE = 22 - RESIZE_BILINEAR = 23 - RNN = 24 - SOFTMAX = 25 - SPACE_TO_DEPTH = 26 - SVDF = 27 - TANH = 28 - CONCAT_EMBEDDINGS = 29 - SKIP_GRAM = 30 - CALL = 31 - CUSTOM = 32 - EMBEDDING_LOOKUP_SPARSE = 33 - PAD = 34 - UNIDIRECTIONAL_SEQUENCE_RNN = 35 - GATHER = 36 - BATCH_TO_SPACE_ND = 37 - SPACE_TO_BATCH_ND = 38 - TRANSPOSE = 39 - MEAN = 40 - SUB = 41 - DIV = 42 - SQUEEZE = 43 - UNIDIRECTIONAL_SEQUENCE_LSTM = 44 - STRIDED_SLICE = 45 - BIDIRECTIONAL_SEQUENCE_RNN = 46 - EXP = 47 - TOPK_V2 = 48 - SPLIT = 49 - LOG_SOFTMAX = 50 - DELEGATE = 51 - BIDIRECTIONAL_SEQUENCE_LSTM = 52 - CAST = 53 - PRELU = 54 - MAXIMUM = 55 - ARG_MAX = 56 - MINIMUM = 57 - LESS = 58 - NEG = 59 - PADV2 = 60 - GREATER = 61 - GREATER_EQUAL = 62 - LESS_EQUAL = 63 - SELECT = 64 - SLICE = 65 - SIN = 66 - TRANSPOSE_CONV = 67 - SPARSE_TO_DENSE = 68 - TILE = 69 - EXPAND_DIMS = 70 - EQUAL = 71 - NOT_EQUAL = 72 - LOG = 73 - SUM = 74 - SQRT = 75 - RSQRT = 76 - SHAPE = 77 - POW = 78 - ARG_MIN = 79 - FAKE_QUANT = 80 - REDUCE_PROD = 81 - REDUCE_MAX = 82 - PACK = 83 - LOGICAL_OR = 84 - ONE_HOT = 85 - LOGICAL_AND = 86 - LOGICAL_NOT = 87 - UNPACK = 88 - REDUCE_MIN = 89 - FLOOR_DIV = 90 - REDUCE_ANY = 91 - SQUARE = 92 - ZEROS_LIKE = 93 - FILL = 94 - FLOOR_MOD = 95 - RANGE = 96 - RESIZE_NEAREST_NEIGHBOR = 97 - LEAKY_RELU = 98 - SQUARED_DIFFERENCE = 99 - MIRROR_PAD = 100 - ABS = 101 - SPLIT_V = 102 - UNIQUE = 103 - CEIL = 104 - REVERSE_V2 = 105 - ADD_N = 106 - GATHER_ND = 107 - COS = 108 - WHERE = 109 - RANK = 110 - ELU = 111 - REVERSE_SEQUENCE = 112 - MATRIX_DIAG = 113 - QUANTIZE = 114 - MATRIX_SET_DIAG = 115 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/BuiltinOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/BuiltinOptions.py deleted file mode 100644 index 9830f648..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/BuiltinOptions.py +++ /dev/null @@ -1,97 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class BuiltinOptions(object): - NONE = 0 - Conv2DOptions = 1 - DepthwiseConv2DOptions = 2 - ConcatEmbeddingsOptions = 3 - LSHProjectionOptions = 4 - Pool2DOptions = 5 - SVDFOptions = 6 - RNNOptions = 7 - FullyConnectedOptions = 8 - SoftmaxOptions = 9 - ConcatenationOptions = 10 - AddOptions = 11 - L2NormOptions = 12 - LocalResponseNormalizationOptions = 13 - LSTMOptions = 14 - ResizeBilinearOptions = 15 - CallOptions = 16 - ReshapeOptions = 17 - SkipGramOptions = 18 - SpaceToDepthOptions = 19 - EmbeddingLookupSparseOptions = 20 - MulOptions = 21 - PadOptions = 22 - GatherOptions = 23 - BatchToSpaceNDOptions = 24 - SpaceToBatchNDOptions = 25 - TransposeOptions = 26 - ReducerOptions = 27 - SubOptions = 28 - DivOptions = 29 - SqueezeOptions = 30 - SequenceRNNOptions = 31 - StridedSliceOptions = 32 - ExpOptions = 33 - TopKV2Options = 34 - SplitOptions = 35 - LogSoftmaxOptions = 36 - CastOptions = 37 - DequantizeOptions = 38 - MaximumMinimumOptions = 39 - ArgMaxOptions = 40 - LessOptions = 41 - NegOptions = 42 - PadV2Options = 43 - GreaterOptions = 44 - GreaterEqualOptions = 45 - LessEqualOptions = 46 - SelectOptions = 47 - SliceOptions = 48 - TransposeConvOptions = 49 - SparseToDenseOptions = 50 - TileOptions = 51 - ExpandDimsOptions = 52 - EqualOptions = 53 - NotEqualOptions = 54 - ShapeOptions = 55 - PowOptions = 56 - ArgMinOptions = 57 - FakeQuantOptions = 58 - PackOptions = 59 - LogicalOrOptions = 60 - OneHotOptions = 61 - LogicalAndOptions = 62 - LogicalNotOptions = 63 - UnpackOptions = 64 - FloorDivOptions = 65 - SquareOptions = 66 - ZerosLikeOptions = 67 - FillOptions = 68 - BidirectionalSequenceLSTMOptions = 69 - BidirectionalSequenceRNNOptions = 70 - UnidirectionalSequenceLSTMOptions = 71 - FloorModOptions = 72 - RangeOptions = 73 - ResizeNearestNeighborOptions = 74 - LeakyReluOptions = 75 - SquaredDifferenceOptions = 76 - MirrorPadOptions = 77 - AbsOptions = 78 - SplitVOptions = 79 - UniqueOptions = 80 - ReverseV2Options = 81 - AddNOptions = 82 - GatherNdOptions = 83 - CosOptions = 84 - WhereOptions = 85 - RankOptions = 86 - ReverseSequenceOptions = 87 - MatrixDiagOptions = 88 - QuantizeOptions = 89 - MatrixSetDiagOptions = 90 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/CallOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/CallOptions.py deleted file mode 100644 index 5ae2eeae..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/CallOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class CallOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsCallOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = CallOptions() - x.Init(buf, n + offset) - return x - - # CallOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # CallOptions - def Subgraph(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) - return 0 - -def CallOptionsStart(builder): builder.StartObject(1) -def CallOptionsAddSubgraph(builder, subgraph): builder.PrependUint32Slot(0, subgraph, 0) -def CallOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/CastOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/CastOptions.py deleted file mode 100644 index 70ae2e37..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/CastOptions.py +++ /dev/null @@ -1,38 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class CastOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsCastOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = CastOptions() - x.Init(buf, n + offset) - return x - - # CastOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # CastOptions - def InDataType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # CastOptions - def OutDataType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def CastOptionsStart(builder): builder.StartObject(2) -def CastOptionsAddInDataType(builder, inDataType): builder.PrependInt8Slot(0, inDataType, 0) -def CastOptionsAddOutDataType(builder, outDataType): builder.PrependInt8Slot(1, outDataType, 0) -def CastOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/CombinerType.py b/utensor_cgen/frontend/tflite_flatbuffer/CombinerType.py deleted file mode 100644 index 17d91510..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/CombinerType.py +++ /dev/null @@ -1,9 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class CombinerType(object): - SUM = 0 - MEAN = 1 - SQRTN = 2 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ConcatEmbeddingsOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ConcatEmbeddingsOptions.py deleted file mode 100644 index 9d26c510..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ConcatEmbeddingsOptions.py +++ /dev/null @@ -1,78 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ConcatEmbeddingsOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsConcatEmbeddingsOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ConcatEmbeddingsOptions() - x.Init(buf, n + offset) - return x - - # ConcatEmbeddingsOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ConcatEmbeddingsOptions - def NumChannels(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # ConcatEmbeddingsOptions - def NumColumnsPerChannel(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # ConcatEmbeddingsOptions - def NumColumnsPerChannelAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # ConcatEmbeddingsOptions - def NumColumnsPerChannelLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # ConcatEmbeddingsOptions - def EmbeddingDimPerChannel(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # ConcatEmbeddingsOptions - def EmbeddingDimPerChannelAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # ConcatEmbeddingsOptions - def EmbeddingDimPerChannelLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - -def ConcatEmbeddingsOptionsStart(builder): builder.StartObject(3) -def ConcatEmbeddingsOptionsAddNumChannels(builder, numChannels): builder.PrependInt32Slot(0, numChannels, 0) -def ConcatEmbeddingsOptionsAddNumColumnsPerChannel(builder, numColumnsPerChannel): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(numColumnsPerChannel), 0) -def ConcatEmbeddingsOptionsStartNumColumnsPerChannelVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def ConcatEmbeddingsOptionsAddEmbeddingDimPerChannel(builder, embeddingDimPerChannel): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(embeddingDimPerChannel), 0) -def ConcatEmbeddingsOptionsStartEmbeddingDimPerChannelVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def ConcatEmbeddingsOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ConcatenationOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ConcatenationOptions.py deleted file mode 100644 index c8e0b6ab..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ConcatenationOptions.py +++ /dev/null @@ -1,38 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ConcatenationOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsConcatenationOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ConcatenationOptions() - x.Init(buf, n + offset) - return x - - # ConcatenationOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ConcatenationOptions - def Axis(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # ConcatenationOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def ConcatenationOptionsStart(builder): builder.StartObject(2) -def ConcatenationOptionsAddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) -def ConcatenationOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) -def ConcatenationOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/Conv2DOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/Conv2DOptions.py deleted file mode 100644 index ef49f751..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/Conv2DOptions.py +++ /dev/null @@ -1,70 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class Conv2DOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsConv2DOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = Conv2DOptions() - x.Init(buf, n + offset) - return x - - # Conv2DOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # Conv2DOptions - def Padding(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # Conv2DOptions - def StrideW(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # Conv2DOptions - def StrideH(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # Conv2DOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # Conv2DOptions - def DilationWFactor(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 1 - - # Conv2DOptions - def DilationHFactor(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 1 - -def Conv2DOptionsStart(builder): builder.StartObject(6) -def Conv2DOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def Conv2DOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) -def Conv2DOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) -def Conv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(3, fusedActivationFunction, 0) -def Conv2DOptionsAddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(4, dilationWFactor, 1) -def Conv2DOptionsAddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(5, dilationHFactor, 1) -def Conv2DOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/CosOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/CosOptions.py deleted file mode 100644 index 7fbf8487..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/CosOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class CosOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsCosOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = CosOptions() - x.Init(buf, n + offset) - return x - - # CosOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def CosOptionsStart(builder): builder.StartObject(0) -def CosOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/CustomOptionsFormat.py b/utensor_cgen/frontend/tflite_flatbuffer/CustomOptionsFormat.py deleted file mode 100644 index bef384cf..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/CustomOptionsFormat.py +++ /dev/null @@ -1,7 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class CustomOptionsFormat(object): - FLEXBUFFERS = 0 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/CustomQuantization.py b/utensor_cgen/frontend/tflite_flatbuffer/CustomQuantization.py deleted file mode 100644 index 21ec0da4..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/CustomQuantization.py +++ /dev/null @@ -1,46 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class CustomQuantization(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsCustomQuantization(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = CustomQuantization() - x.Init(buf, n + offset) - return x - - # CustomQuantization - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # CustomQuantization - def Custom(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Uint8Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1)) - return 0 - - # CustomQuantization - def CustomAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint8Flags, o) - return 0 - - # CustomQuantization - def CustomLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - -def CustomQuantizationStart(builder): builder.StartObject(1) -def CustomQuantizationAddCustom(builder, custom): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(custom), 0) -def CustomQuantizationStartCustomVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def CustomQuantizationEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/DepthwiseConv2DOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/DepthwiseConv2DOptions.py deleted file mode 100644 index 9689383b..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/DepthwiseConv2DOptions.py +++ /dev/null @@ -1,78 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class DepthwiseConv2DOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsDepthwiseConv2DOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = DepthwiseConv2DOptions() - x.Init(buf, n + offset) - return x - - # DepthwiseConv2DOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # DepthwiseConv2DOptions - def Padding(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # DepthwiseConv2DOptions - def StrideW(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # DepthwiseConv2DOptions - def StrideH(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # DepthwiseConv2DOptions - def DepthMultiplier(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # DepthwiseConv2DOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # DepthwiseConv2DOptions - def DilationWFactor(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 1 - - # DepthwiseConv2DOptions - def DilationHFactor(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 1 - -def DepthwiseConv2DOptionsStart(builder): builder.StartObject(7) -def DepthwiseConv2DOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def DepthwiseConv2DOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) -def DepthwiseConv2DOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) -def DepthwiseConv2DOptionsAddDepthMultiplier(builder, depthMultiplier): builder.PrependInt32Slot(3, depthMultiplier, 0) -def DepthwiseConv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(4, fusedActivationFunction, 0) -def DepthwiseConv2DOptionsAddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(5, dilationWFactor, 1) -def DepthwiseConv2DOptionsAddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(6, dilationHFactor, 1) -def DepthwiseConv2DOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/DequantizeOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/DequantizeOptions.py deleted file mode 100644 index 5ef8b8dd..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/DequantizeOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class DequantizeOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsDequantizeOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = DequantizeOptions() - x.Init(buf, n + offset) - return x - - # DequantizeOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def DequantizeOptionsStart(builder): builder.StartObject(0) -def DequantizeOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/DivOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/DivOptions.py deleted file mode 100644 index 905a3be0..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/DivOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class DivOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsDivOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = DivOptions() - x.Init(buf, n + offset) - return x - - # DivOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # DivOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def DivOptionsStart(builder): builder.StartObject(1) -def DivOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def DivOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/EmbeddingLookupSparseOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/EmbeddingLookupSparseOptions.py deleted file mode 100644 index 7d9c1442..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/EmbeddingLookupSparseOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class EmbeddingLookupSparseOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsEmbeddingLookupSparseOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = EmbeddingLookupSparseOptions() - x.Init(buf, n + offset) - return x - - # EmbeddingLookupSparseOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # EmbeddingLookupSparseOptions - def Combiner(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def EmbeddingLookupSparseOptionsStart(builder): builder.StartObject(1) -def EmbeddingLookupSparseOptionsAddCombiner(builder, combiner): builder.PrependInt8Slot(0, combiner, 0) -def EmbeddingLookupSparseOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/EqualOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/EqualOptions.py deleted file mode 100644 index f787ef85..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/EqualOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class EqualOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsEqualOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = EqualOptions() - x.Init(buf, n + offset) - return x - - # EqualOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def EqualOptionsStart(builder): builder.StartObject(0) -def EqualOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ExpOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ExpOptions.py deleted file mode 100644 index eac1456e..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ExpOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ExpOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsExpOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ExpOptions() - x.Init(buf, n + offset) - return x - - # ExpOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def ExpOptionsStart(builder): builder.StartObject(0) -def ExpOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ExpandDimsOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ExpandDimsOptions.py deleted file mode 100644 index 69d63665..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ExpandDimsOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ExpandDimsOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsExpandDimsOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ExpandDimsOptions() - x.Init(buf, n + offset) - return x - - # ExpandDimsOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def ExpandDimsOptionsStart(builder): builder.StartObject(0) -def ExpandDimsOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/FakeQuantOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/FakeQuantOptions.py deleted file mode 100644 index 46c371c3..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/FakeQuantOptions.py +++ /dev/null @@ -1,54 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class FakeQuantOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsFakeQuantOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = FakeQuantOptions() - x.Init(buf, n + offset) - return x - - # FakeQuantOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # FakeQuantOptions - def Min(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # FakeQuantOptions - def Max(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # FakeQuantOptions - def NumBits(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # FakeQuantOptions - def NarrowRange(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def FakeQuantOptionsStart(builder): builder.StartObject(4) -def FakeQuantOptionsAddMin(builder, min): builder.PrependFloat32Slot(0, min, 0.0) -def FakeQuantOptionsAddMax(builder, max): builder.PrependFloat32Slot(1, max, 0.0) -def FakeQuantOptionsAddNumBits(builder, numBits): builder.PrependInt32Slot(2, numBits, 0) -def FakeQuantOptionsAddNarrowRange(builder, narrowRange): builder.PrependBoolSlot(3, narrowRange, 0) -def FakeQuantOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/FillOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/FillOptions.py deleted file mode 100644 index 5a1e651a..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/FillOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class FillOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsFillOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = FillOptions() - x.Init(buf, n + offset) - return x - - # FillOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def FillOptionsStart(builder): builder.StartObject(0) -def FillOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/FloorDivOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/FloorDivOptions.py deleted file mode 100644 index 64b474fb..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/FloorDivOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class FloorDivOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsFloorDivOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = FloorDivOptions() - x.Init(buf, n + offset) - return x - - # FloorDivOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def FloorDivOptionsStart(builder): builder.StartObject(0) -def FloorDivOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/FloorModOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/FloorModOptions.py deleted file mode 100644 index 37c8e5a5..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/FloorModOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class FloorModOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsFloorModOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = FloorModOptions() - x.Init(buf, n + offset) - return x - - # FloorModOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def FloorModOptionsStart(builder): builder.StartObject(0) -def FloorModOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/FullyConnectedOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/FullyConnectedOptions.py deleted file mode 100644 index fb7ebc28..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/FullyConnectedOptions.py +++ /dev/null @@ -1,38 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class FullyConnectedOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsFullyConnectedOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = FullyConnectedOptions() - x.Init(buf, n + offset) - return x - - # FullyConnectedOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # FullyConnectedOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # FullyConnectedOptions - def WeightsFormat(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def FullyConnectedOptionsStart(builder): builder.StartObject(2) -def FullyConnectedOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def FullyConnectedOptionsAddWeightsFormat(builder, weightsFormat): builder.PrependInt8Slot(1, weightsFormat, 0) -def FullyConnectedOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/FullyConnectedOptionsWeightsFormat.py b/utensor_cgen/frontend/tflite_flatbuffer/FullyConnectedOptionsWeightsFormat.py deleted file mode 100644 index 6d81eca1..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/FullyConnectedOptionsWeightsFormat.py +++ /dev/null @@ -1,8 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class FullyConnectedOptionsWeightsFormat(object): - DEFAULT = 0 - SHUFFLED4x16INT8 = 1 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/GatherNdOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/GatherNdOptions.py deleted file mode 100644 index f515eb5c..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/GatherNdOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class GatherNdOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsGatherNdOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = GatherNdOptions() - x.Init(buf, n + offset) - return x - - # GatherNdOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def GatherNdOptionsStart(builder): builder.StartObject(0) -def GatherNdOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/GatherOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/GatherOptions.py deleted file mode 100644 index 9fbc3e40..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/GatherOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class GatherOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsGatherOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = GatherOptions() - x.Init(buf, n + offset) - return x - - # GatherOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # GatherOptions - def Axis(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def GatherOptionsStart(builder): builder.StartObject(1) -def GatherOptionsAddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) -def GatherOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/GreaterEqualOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/GreaterEqualOptions.py deleted file mode 100644 index a29e200a..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/GreaterEqualOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class GreaterEqualOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsGreaterEqualOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = GreaterEqualOptions() - x.Init(buf, n + offset) - return x - - # GreaterEqualOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def GreaterEqualOptionsStart(builder): builder.StartObject(0) -def GreaterEqualOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/GreaterOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/GreaterOptions.py deleted file mode 100644 index 59d63501..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/GreaterOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class GreaterOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsGreaterOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = GreaterOptions() - x.Init(buf, n + offset) - return x - - # GreaterOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def GreaterOptionsStart(builder): builder.StartObject(0) -def GreaterOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/L2NormOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/L2NormOptions.py deleted file mode 100644 index 38bdf573..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/L2NormOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class L2NormOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsL2NormOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = L2NormOptions() - x.Init(buf, n + offset) - return x - - # L2NormOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # L2NormOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def L2NormOptionsStart(builder): builder.StartObject(1) -def L2NormOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def L2NormOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LSHProjectionOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LSHProjectionOptions.py deleted file mode 100644 index ad550be2..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LSHProjectionOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LSHProjectionOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLSHProjectionOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LSHProjectionOptions() - x.Init(buf, n + offset) - return x - - # LSHProjectionOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # LSHProjectionOptions - def Type(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def LSHProjectionOptionsStart(builder): builder.StartObject(1) -def LSHProjectionOptionsAddType(builder, type): builder.PrependInt8Slot(0, type, 0) -def LSHProjectionOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LSHProjectionType.py b/utensor_cgen/frontend/tflite_flatbuffer/LSHProjectionType.py deleted file mode 100644 index d6a136e8..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LSHProjectionType.py +++ /dev/null @@ -1,9 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class LSHProjectionType(object): - UNKNOWN = 0 - SPARSE = 1 - DENSE = 2 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LSTMKernelType.py b/utensor_cgen/frontend/tflite_flatbuffer/LSTMKernelType.py deleted file mode 100644 index 1ca4df0a..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LSTMKernelType.py +++ /dev/null @@ -1,8 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class LSTMKernelType(object): - FULL = 0 - BASIC = 1 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LSTMOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LSTMOptions.py deleted file mode 100644 index 93a83093..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LSTMOptions.py +++ /dev/null @@ -1,54 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LSTMOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLSTMOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LSTMOptions() - x.Init(buf, n + offset) - return x - - # LSTMOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # LSTMOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # LSTMOptions - def CellClip(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # LSTMOptions - def ProjClip(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # LSTMOptions - def KernelType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def LSTMOptionsStart(builder): builder.StartObject(4) -def LSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def LSTMOptionsAddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) -def LSTMOptionsAddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) -def LSTMOptionsAddKernelType(builder, kernelType): builder.PrependInt8Slot(3, kernelType, 0) -def LSTMOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LeakyReluOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LeakyReluOptions.py deleted file mode 100644 index b61b21d5..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LeakyReluOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LeakyReluOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLeakyReluOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LeakyReluOptions() - x.Init(buf, n + offset) - return x - - # LeakyReluOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # LeakyReluOptions - def Alpha(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - -def LeakyReluOptionsStart(builder): builder.StartObject(1) -def LeakyReluOptionsAddAlpha(builder, alpha): builder.PrependFloat32Slot(0, alpha, 0.0) -def LeakyReluOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LessEqualOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LessEqualOptions.py deleted file mode 100644 index d49b7289..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LessEqualOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LessEqualOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLessEqualOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LessEqualOptions() - x.Init(buf, n + offset) - return x - - # LessEqualOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def LessEqualOptionsStart(builder): builder.StartObject(0) -def LessEqualOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LessOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LessOptions.py deleted file mode 100644 index 469cb0b0..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LessOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LessOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLessOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LessOptions() - x.Init(buf, n + offset) - return x - - # LessOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def LessOptionsStart(builder): builder.StartObject(0) -def LessOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LocalResponseNormalizationOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LocalResponseNormalizationOptions.py deleted file mode 100644 index db875603..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LocalResponseNormalizationOptions.py +++ /dev/null @@ -1,54 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LocalResponseNormalizationOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLocalResponseNormalizationOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LocalResponseNormalizationOptions() - x.Init(buf, n + offset) - return x - - # LocalResponseNormalizationOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # LocalResponseNormalizationOptions - def Radius(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # LocalResponseNormalizationOptions - def Bias(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # LocalResponseNormalizationOptions - def Alpha(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # LocalResponseNormalizationOptions - def Beta(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - -def LocalResponseNormalizationOptionsStart(builder): builder.StartObject(4) -def LocalResponseNormalizationOptionsAddRadius(builder, radius): builder.PrependInt32Slot(0, radius, 0) -def LocalResponseNormalizationOptionsAddBias(builder, bias): builder.PrependFloat32Slot(1, bias, 0.0) -def LocalResponseNormalizationOptionsAddAlpha(builder, alpha): builder.PrependFloat32Slot(2, alpha, 0.0) -def LocalResponseNormalizationOptionsAddBeta(builder, beta): builder.PrependFloat32Slot(3, beta, 0.0) -def LocalResponseNormalizationOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LogSoftmaxOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LogSoftmaxOptions.py deleted file mode 100644 index 47893855..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LogSoftmaxOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LogSoftmaxOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLogSoftmaxOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LogSoftmaxOptions() - x.Init(buf, n + offset) - return x - - # LogSoftmaxOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def LogSoftmaxOptionsStart(builder): builder.StartObject(0) -def LogSoftmaxOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LogicalAndOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LogicalAndOptions.py deleted file mode 100644 index cee1cdb4..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LogicalAndOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LogicalAndOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLogicalAndOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LogicalAndOptions() - x.Init(buf, n + offset) - return x - - # LogicalAndOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def LogicalAndOptionsStart(builder): builder.StartObject(0) -def LogicalAndOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LogicalNotOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LogicalNotOptions.py deleted file mode 100644 index 9971450c..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LogicalNotOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LogicalNotOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLogicalNotOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LogicalNotOptions() - x.Init(buf, n + offset) - return x - - # LogicalNotOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def LogicalNotOptionsStart(builder): builder.StartObject(0) -def LogicalNotOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/LogicalOrOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/LogicalOrOptions.py deleted file mode 100644 index e94a5dec..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/LogicalOrOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class LogicalOrOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsLogicalOrOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = LogicalOrOptions() - x.Init(buf, n + offset) - return x - - # LogicalOrOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def LogicalOrOptionsStart(builder): builder.StartObject(0) -def LogicalOrOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/MatrixDiagOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/MatrixDiagOptions.py deleted file mode 100644 index 0f64e657..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/MatrixDiagOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class MatrixDiagOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsMatrixDiagOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = MatrixDiagOptions() - x.Init(buf, n + offset) - return x - - # MatrixDiagOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def MatrixDiagOptionsStart(builder): builder.StartObject(0) -def MatrixDiagOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/MatrixSetDiagOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/MatrixSetDiagOptions.py deleted file mode 100644 index 14178cf8..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/MatrixSetDiagOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class MatrixSetDiagOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsMatrixSetDiagOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = MatrixSetDiagOptions() - x.Init(buf, n + offset) - return x - - # MatrixSetDiagOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def MatrixSetDiagOptionsStart(builder): builder.StartObject(0) -def MatrixSetDiagOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/MaximumMinimumOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/MaximumMinimumOptions.py deleted file mode 100644 index f0806e2d..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/MaximumMinimumOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class MaximumMinimumOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsMaximumMinimumOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = MaximumMinimumOptions() - x.Init(buf, n + offset) - return x - - # MaximumMinimumOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def MaximumMinimumOptionsStart(builder): builder.StartObject(0) -def MaximumMinimumOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/MirrorPadMode.py b/utensor_cgen/frontend/tflite_flatbuffer/MirrorPadMode.py deleted file mode 100644 index ce7579d2..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/MirrorPadMode.py +++ /dev/null @@ -1,8 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class MirrorPadMode(object): - REFLECT = 0 - SYMMETRIC = 1 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/MirrorPadOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/MirrorPadOptions.py deleted file mode 100644 index 254ae217..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/MirrorPadOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class MirrorPadOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsMirrorPadOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = MirrorPadOptions() - x.Init(buf, n + offset) - return x - - # MirrorPadOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # MirrorPadOptions - def Mode(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def MirrorPadOptionsStart(builder): builder.StartObject(1) -def MirrorPadOptionsAddMode(builder, mode): builder.PrependInt8Slot(0, mode, 0) -def MirrorPadOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/Model.py b/utensor_cgen/frontend/tflite_flatbuffer/Model.py deleted file mode 100644 index aab841ab..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/Model.py +++ /dev/null @@ -1,128 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class Model(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsModel(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = Model() - x.Init(buf, n + offset) - return x - - # Model - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # Model - def Version(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) - return 0 - - # Model - def OperatorCodes(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - x = self._tab.Vector(o) - x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 - x = self._tab.Indirect(x) - from .OperatorCode import OperatorCode - obj = OperatorCode() - obj.Init(self._tab.Bytes, x) - return obj - return None - - # Model - def OperatorCodesLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # Model - def Subgraphs(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - x = self._tab.Vector(o) - x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 - x = self._tab.Indirect(x) - from .SubGraph import SubGraph - obj = SubGraph() - obj.Init(self._tab.Bytes, x) - return obj - return None - - # Model - def SubgraphsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # Model - def Description(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.String(o + self._tab.Pos) - return None - - # Model - def Buffers(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - x = self._tab.Vector(o) - x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 - x = self._tab.Indirect(x) - from .Buffer import Buffer - obj = Buffer() - obj.Init(self._tab.Bytes, x) - return obj - return None - - # Model - def BuffersLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # Model - def MetadataBuffer(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # Model - def MetadataBufferAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # Model - def MetadataBufferLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - -def ModelStart(builder): builder.StartObject(6) -def ModelAddVersion(builder, version): builder.PrependUint32Slot(0, version, 0) -def ModelAddOperatorCodes(builder, operatorCodes): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(operatorCodes), 0) -def ModelStartOperatorCodesVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def ModelAddSubgraphs(builder, subgraphs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(subgraphs), 0) -def ModelStartSubgraphsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def ModelAddDescription(builder, description): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(description), 0) -def ModelAddBuffers(builder, buffers): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(buffers), 0) -def ModelStartBuffersVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def ModelAddMetadataBuffer(builder, metadataBuffer): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(metadataBuffer), 0) -def ModelStartMetadataBufferVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def ModelEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/MulOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/MulOptions.py deleted file mode 100644 index 55b9506f..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/MulOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class MulOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsMulOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = MulOptions() - x.Init(buf, n + offset) - return x - - # MulOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # MulOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def MulOptionsStart(builder): builder.StartObject(1) -def MulOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def MulOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/NegOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/NegOptions.py deleted file mode 100644 index 05d55c26..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/NegOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class NegOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsNegOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = NegOptions() - x.Init(buf, n + offset) - return x - - # NegOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def NegOptionsStart(builder): builder.StartObject(0) -def NegOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/NotEqualOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/NotEqualOptions.py deleted file mode 100644 index 4c511e93..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/NotEqualOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class NotEqualOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsNotEqualOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = NotEqualOptions() - x.Init(buf, n + offset) - return x - - # NotEqualOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def NotEqualOptionsStart(builder): builder.StartObject(0) -def NotEqualOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/OneHotOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/OneHotOptions.py deleted file mode 100644 index 793a3e75..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/OneHotOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class OneHotOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsOneHotOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = OneHotOptions() - x.Init(buf, n + offset) - return x - - # OneHotOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # OneHotOptions - def Axis(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def OneHotOptionsStart(builder): builder.StartObject(1) -def OneHotOptionsAddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) -def OneHotOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/Operator.py b/utensor_cgen/frontend/tflite_flatbuffer/Operator.py deleted file mode 100644 index fd237845..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/Operator.py +++ /dev/null @@ -1,153 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class Operator(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsOperator(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = Operator() - x.Init(buf, n + offset) - return x - - # Operator - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # Operator - def OpcodeIndex(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) - return 0 - - # Operator - def Inputs(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # Operator - def InputsAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # Operator - def InputsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # Operator - def Outputs(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # Operator - def OutputsAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # Operator - def OutputsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # Operator - def BuiltinOptionsType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Uint8Flags, o + self._tab.Pos) - return 0 - - # Operator - def BuiltinOptions(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - from flatbuffers.table import Table - obj = Table(bytearray(), 0) - self._tab.Union(obj, o) - return obj - return None - - # Operator - def CustomOptions(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Uint8Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1)) - return 0 - - # Operator - def CustomOptionsAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint8Flags, o) - return 0 - - # Operator - def CustomOptionsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # Operator - def CustomOptionsFormat(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # Operator - def MutatingVariableInputs(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.BoolFlags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1)) - return 0 - - # Operator - def MutatingVariableInputsAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.BoolFlags, o) - return 0 - - # Operator - def MutatingVariableInputsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - -def OperatorStart(builder): builder.StartObject(8) -def OperatorAddOpcodeIndex(builder, opcodeIndex): builder.PrependUint32Slot(0, opcodeIndex, 0) -def OperatorAddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) -def OperatorStartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def OperatorAddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) -def OperatorStartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def OperatorAddBuiltinOptionsType(builder, builtinOptionsType): builder.PrependUint8Slot(3, builtinOptionsType, 0) -def OperatorAddBuiltinOptions(builder, builtinOptions): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(builtinOptions), 0) -def OperatorAddCustomOptions(builder, customOptions): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(customOptions), 0) -def OperatorStartCustomOptionsVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def OperatorAddCustomOptionsFormat(builder, customOptionsFormat): builder.PrependInt8Slot(6, customOptionsFormat, 0) -def OperatorAddMutatingVariableInputs(builder, mutatingVariableInputs): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(mutatingVariableInputs), 0) -def OperatorStartMutatingVariableInputsVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def OperatorEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/OperatorCode.py b/utensor_cgen/frontend/tflite_flatbuffer/OperatorCode.py deleted file mode 100644 index dd525f53..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/OperatorCode.py +++ /dev/null @@ -1,46 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class OperatorCode(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsOperatorCode(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = OperatorCode() - x.Init(buf, n + offset) - return x - - # OperatorCode - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # OperatorCode - def BuiltinCode(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # OperatorCode - def CustomCode(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.String(o + self._tab.Pos) - return None - - # OperatorCode - def Version(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 1 - -def OperatorCodeStart(builder): builder.StartObject(3) -def OperatorCodeAddBuiltinCode(builder, builtinCode): builder.PrependInt8Slot(0, builtinCode, 0) -def OperatorCodeAddCustomCode(builder, customCode): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(customCode), 0) -def OperatorCodeAddVersion(builder, version): builder.PrependInt32Slot(2, version, 1) -def OperatorCodeEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/PackOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/PackOptions.py deleted file mode 100644 index 6a8ee2bb..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/PackOptions.py +++ /dev/null @@ -1,38 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class PackOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsPackOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = PackOptions() - x.Init(buf, n + offset) - return x - - # PackOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # PackOptions - def ValuesCount(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # PackOptions - def Axis(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def PackOptionsStart(builder): builder.StartObject(2) -def PackOptionsAddValuesCount(builder, valuesCount): builder.PrependInt32Slot(0, valuesCount, 0) -def PackOptionsAddAxis(builder, axis): builder.PrependInt32Slot(1, axis, 0) -def PackOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/PadOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/PadOptions.py deleted file mode 100644 index d0833c68..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/PadOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class PadOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsPadOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = PadOptions() - x.Init(buf, n + offset) - return x - - # PadOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def PadOptionsStart(builder): builder.StartObject(0) -def PadOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/PadV2Options.py b/utensor_cgen/frontend/tflite_flatbuffer/PadV2Options.py deleted file mode 100644 index 5ea0d70c..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/PadV2Options.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class PadV2Options(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsPadV2Options(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = PadV2Options() - x.Init(buf, n + offset) - return x - - # PadV2Options - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def PadV2OptionsStart(builder): builder.StartObject(0) -def PadV2OptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/Padding.py b/utensor_cgen/frontend/tflite_flatbuffer/Padding.py deleted file mode 100644 index 6027f4b5..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/Padding.py +++ /dev/null @@ -1,8 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class Padding(object): - SAME = 0 - VALID = 1 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/Pool2DOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/Pool2DOptions.py deleted file mode 100644 index b8b9f178..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/Pool2DOptions.py +++ /dev/null @@ -1,70 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class Pool2DOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsPool2DOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = Pool2DOptions() - x.Init(buf, n + offset) - return x - - # Pool2DOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # Pool2DOptions - def Padding(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # Pool2DOptions - def StrideW(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # Pool2DOptions - def StrideH(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # Pool2DOptions - def FilterWidth(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # Pool2DOptions - def FilterHeight(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # Pool2DOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def Pool2DOptionsStart(builder): builder.StartObject(6) -def Pool2DOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def Pool2DOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) -def Pool2DOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) -def Pool2DOptionsAddFilterWidth(builder, filterWidth): builder.PrependInt32Slot(3, filterWidth, 0) -def Pool2DOptionsAddFilterHeight(builder, filterHeight): builder.PrependInt32Slot(4, filterHeight, 0) -def Pool2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(5, fusedActivationFunction, 0) -def Pool2DOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/PowOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/PowOptions.py deleted file mode 100644 index 666ca488..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/PowOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class PowOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsPowOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = PowOptions() - x.Init(buf, n + offset) - return x - - # PowOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def PowOptionsStart(builder): builder.StartObject(0) -def PowOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/QuantizationDetails.py b/utensor_cgen/frontend/tflite_flatbuffer/QuantizationDetails.py deleted file mode 100644 index 7159efbd..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/QuantizationDetails.py +++ /dev/null @@ -1,8 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class QuantizationDetails(object): - NONE = 0 - CustomQuantization = 1 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/QuantizationParameters.py b/utensor_cgen/frontend/tflite_flatbuffer/QuantizationParameters.py deleted file mode 100644 index fcd686cf..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/QuantizationParameters.py +++ /dev/null @@ -1,145 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class QuantizationParameters(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsQuantizationParameters(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = QuantizationParameters() - x.Init(buf, n + offset) - return x - - # QuantizationParameters - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # QuantizationParameters - def Min(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Float32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # QuantizationParameters - def MinAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Float32Flags, o) - return 0 - - # QuantizationParameters - def MinLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # QuantizationParameters - def Max(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Float32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # QuantizationParameters - def MaxAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Float32Flags, o) - return 0 - - # QuantizationParameters - def MaxLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # QuantizationParameters - def Scale(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Float32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # QuantizationParameters - def ScaleAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Float32Flags, o) - return 0 - - # QuantizationParameters - def ScaleLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # QuantizationParameters - def ZeroPoint(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int64Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 8)) - return 0 - - # QuantizationParameters - def ZeroPointAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int64Flags, o) - return 0 - - # QuantizationParameters - def ZeroPointLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # QuantizationParameters - def DetailsType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Uint8Flags, o + self._tab.Pos) - return 0 - - # QuantizationParameters - def Details(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - from flatbuffers.table import Table - obj = Table(bytearray(), 0) - self._tab.Union(obj, o) - return obj - return None - - # QuantizationParameters - def QuantizedDimension(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def QuantizationParametersStart(builder): builder.StartObject(7) -def QuantizationParametersAddMin(builder, min): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(min), 0) -def QuantizationParametersStartMinVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def QuantizationParametersAddMax(builder, max): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(max), 0) -def QuantizationParametersStartMaxVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def QuantizationParametersAddScale(builder, scale): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(scale), 0) -def QuantizationParametersStartScaleVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def QuantizationParametersAddZeroPoint(builder, zeroPoint): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(zeroPoint), 0) -def QuantizationParametersStartZeroPointVector(builder, numElems): return builder.StartVector(8, numElems, 8) -def QuantizationParametersAddDetailsType(builder, detailsType): builder.PrependUint8Slot(4, detailsType, 0) -def QuantizationParametersAddDetails(builder, details): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(details), 0) -def QuantizationParametersAddQuantizedDimension(builder, quantizedDimension): builder.PrependInt32Slot(6, quantizedDimension, 0) -def QuantizationParametersEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/QuantizeOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/QuantizeOptions.py deleted file mode 100644 index 28af8cc9..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/QuantizeOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class QuantizeOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsQuantizeOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = QuantizeOptions() - x.Init(buf, n + offset) - return x - - # QuantizeOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def QuantizeOptionsStart(builder): builder.StartObject(0) -def QuantizeOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/RNNOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/RNNOptions.py deleted file mode 100644 index 3cfdb6af..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/RNNOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class RNNOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsRNNOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = RNNOptions() - x.Init(buf, n + offset) - return x - - # RNNOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # RNNOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def RNNOptionsStart(builder): builder.StartObject(1) -def RNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def RNNOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/RangeOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/RangeOptions.py deleted file mode 100644 index cb705b57..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/RangeOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class RangeOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsRangeOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = RangeOptions() - x.Init(buf, n + offset) - return x - - # RangeOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def RangeOptionsStart(builder): builder.StartObject(0) -def RangeOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/RankOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/RankOptions.py deleted file mode 100644 index 4e4a5ecd..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/RankOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class RankOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsRankOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = RankOptions() - x.Init(buf, n + offset) - return x - - # RankOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def RankOptionsStart(builder): builder.StartObject(0) -def RankOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ReducerOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ReducerOptions.py deleted file mode 100644 index 93bbde17..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ReducerOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ReducerOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsReducerOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ReducerOptions() - x.Init(buf, n + offset) - return x - - # ReducerOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ReducerOptions - def KeepDims(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def ReducerOptionsStart(builder): builder.StartObject(1) -def ReducerOptionsAddKeepDims(builder, keepDims): builder.PrependBoolSlot(0, keepDims, 0) -def ReducerOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ReshapeOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ReshapeOptions.py deleted file mode 100644 index 157d45d9..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ReshapeOptions.py +++ /dev/null @@ -1,46 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ReshapeOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsReshapeOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ReshapeOptions() - x.Init(buf, n + offset) - return x - - # ReshapeOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ReshapeOptions - def NewShape(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # ReshapeOptions - def NewShapeAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # ReshapeOptions - def NewShapeLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - -def ReshapeOptionsStart(builder): builder.StartObject(1) -def ReshapeOptionsAddNewShape(builder, newShape): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(newShape), 0) -def ReshapeOptionsStartNewShapeVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def ReshapeOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ResizeBilinearOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ResizeBilinearOptions.py deleted file mode 100644 index 0d1f9624..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ResizeBilinearOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ResizeBilinearOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsResizeBilinearOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ResizeBilinearOptions() - x.Init(buf, n + offset) - return x - - # ResizeBilinearOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ResizeBilinearOptions - def AlignCorners(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def ResizeBilinearOptionsStart(builder): builder.StartObject(3) -def ResizeBilinearOptionsAddAlignCorners(builder, alignCorners): builder.PrependBoolSlot(2, alignCorners, 0) -def ResizeBilinearOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ResizeNearestNeighborOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ResizeNearestNeighborOptions.py deleted file mode 100644 index 4b166e95..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ResizeNearestNeighborOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ResizeNearestNeighborOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsResizeNearestNeighborOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ResizeNearestNeighborOptions() - x.Init(buf, n + offset) - return x - - # ResizeNearestNeighborOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ResizeNearestNeighborOptions - def AlignCorners(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def ResizeNearestNeighborOptionsStart(builder): builder.StartObject(1) -def ResizeNearestNeighborOptionsAddAlignCorners(builder, alignCorners): builder.PrependBoolSlot(0, alignCorners, 0) -def ResizeNearestNeighborOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ReverseSequenceOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ReverseSequenceOptions.py deleted file mode 100644 index cbaf96db..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ReverseSequenceOptions.py +++ /dev/null @@ -1,38 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ReverseSequenceOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsReverseSequenceOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ReverseSequenceOptions() - x.Init(buf, n + offset) - return x - - # ReverseSequenceOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ReverseSequenceOptions - def SeqDim(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # ReverseSequenceOptions - def BatchDim(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def ReverseSequenceOptionsStart(builder): builder.StartObject(2) -def ReverseSequenceOptionsAddSeqDim(builder, seqDim): builder.PrependInt32Slot(0, seqDim, 0) -def ReverseSequenceOptionsAddBatchDim(builder, batchDim): builder.PrependInt32Slot(1, batchDim, 0) -def ReverseSequenceOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ReverseV2Options.py b/utensor_cgen/frontend/tflite_flatbuffer/ReverseV2Options.py deleted file mode 100644 index dbac9362..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ReverseV2Options.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ReverseV2Options(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsReverseV2Options(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ReverseV2Options() - x.Init(buf, n + offset) - return x - - # ReverseV2Options - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def ReverseV2OptionsStart(builder): builder.StartObject(0) -def ReverseV2OptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SVDFOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SVDFOptions.py deleted file mode 100644 index 6f391db1..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SVDFOptions.py +++ /dev/null @@ -1,38 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SVDFOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSVDFOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SVDFOptions() - x.Init(buf, n + offset) - return x - - # SVDFOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SVDFOptions - def Rank(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # SVDFOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def SVDFOptionsStart(builder): builder.StartObject(2) -def SVDFOptionsAddRank(builder, rank): builder.PrependInt32Slot(0, rank, 0) -def SVDFOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) -def SVDFOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SelectOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SelectOptions.py deleted file mode 100644 index d67daf36..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SelectOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SelectOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSelectOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SelectOptions() - x.Init(buf, n + offset) - return x - - # SelectOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def SelectOptionsStart(builder): builder.StartObject(0) -def SelectOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SequenceRNNOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SequenceRNNOptions.py deleted file mode 100644 index 74a4954a..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SequenceRNNOptions.py +++ /dev/null @@ -1,38 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SequenceRNNOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSequenceRNNOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SequenceRNNOptions() - x.Init(buf, n + offset) - return x - - # SequenceRNNOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SequenceRNNOptions - def TimeMajor(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - - # SequenceRNNOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def SequenceRNNOptionsStart(builder): builder.StartObject(2) -def SequenceRNNOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(0, timeMajor, 0) -def SequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) -def SequenceRNNOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ShapeOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ShapeOptions.py deleted file mode 100644 index 2d24c05f..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ShapeOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ShapeOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsShapeOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ShapeOptions() - x.Init(buf, n + offset) - return x - - # ShapeOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # ShapeOptions - def OutType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def ShapeOptionsStart(builder): builder.StartObject(1) -def ShapeOptionsAddOutType(builder, outType): builder.PrependInt8Slot(0, outType, 0) -def ShapeOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SkipGramOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SkipGramOptions.py deleted file mode 100644 index 0e8bdc1d..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SkipGramOptions.py +++ /dev/null @@ -1,46 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SkipGramOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSkipGramOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SkipGramOptions() - x.Init(buf, n + offset) - return x - - # SkipGramOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SkipGramOptions - def NgramSize(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # SkipGramOptions - def MaxSkipSize(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # SkipGramOptions - def IncludeAllNgrams(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def SkipGramOptionsStart(builder): builder.StartObject(3) -def SkipGramOptionsAddNgramSize(builder, ngramSize): builder.PrependInt32Slot(0, ngramSize, 0) -def SkipGramOptionsAddMaxSkipSize(builder, maxSkipSize): builder.PrependInt32Slot(1, maxSkipSize, 0) -def SkipGramOptionsAddIncludeAllNgrams(builder, includeAllNgrams): builder.PrependBoolSlot(2, includeAllNgrams, 0) -def SkipGramOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SliceOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SliceOptions.py deleted file mode 100644 index 4b41568d..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SliceOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SliceOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSliceOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SliceOptions() - x.Init(buf, n + offset) - return x - - # SliceOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def SliceOptionsStart(builder): builder.StartObject(0) -def SliceOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SoftmaxOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SoftmaxOptions.py deleted file mode 100644 index a7168534..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SoftmaxOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SoftmaxOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSoftmaxOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SoftmaxOptions() - x.Init(buf, n + offset) - return x - - # SoftmaxOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SoftmaxOptions - def Beta(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - -def SoftmaxOptionsStart(builder): builder.StartObject(1) -def SoftmaxOptionsAddBeta(builder, beta): builder.PrependFloat32Slot(0, beta, 0.0) -def SoftmaxOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SpaceToBatchNDOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SpaceToBatchNDOptions.py deleted file mode 100644 index b61ef96f..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SpaceToBatchNDOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SpaceToBatchNDOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSpaceToBatchNDOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SpaceToBatchNDOptions() - x.Init(buf, n + offset) - return x - - # SpaceToBatchNDOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def SpaceToBatchNDOptionsStart(builder): builder.StartObject(0) -def SpaceToBatchNDOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SpaceToDepthOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SpaceToDepthOptions.py deleted file mode 100644 index d571174a..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SpaceToDepthOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SpaceToDepthOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSpaceToDepthOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SpaceToDepthOptions() - x.Init(buf, n + offset) - return x - - # SpaceToDepthOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SpaceToDepthOptions - def BlockSize(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def SpaceToDepthOptionsStart(builder): builder.StartObject(1) -def SpaceToDepthOptionsAddBlockSize(builder, blockSize): builder.PrependInt32Slot(0, blockSize, 0) -def SpaceToDepthOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SparseToDenseOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SparseToDenseOptions.py deleted file mode 100644 index 826eee08..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SparseToDenseOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SparseToDenseOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSparseToDenseOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SparseToDenseOptions() - x.Init(buf, n + offset) - return x - - # SparseToDenseOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SparseToDenseOptions - def ValidateIndices(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def SparseToDenseOptionsStart(builder): builder.StartObject(1) -def SparseToDenseOptionsAddValidateIndices(builder, validateIndices): builder.PrependBoolSlot(0, validateIndices, 0) -def SparseToDenseOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SplitOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SplitOptions.py deleted file mode 100644 index 3207525b..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SplitOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SplitOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSplitOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SplitOptions() - x.Init(buf, n + offset) - return x - - # SplitOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SplitOptions - def NumSplits(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def SplitOptionsStart(builder): builder.StartObject(1) -def SplitOptionsAddNumSplits(builder, numSplits): builder.PrependInt32Slot(0, numSplits, 0) -def SplitOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SplitVOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SplitVOptions.py deleted file mode 100644 index 418959de..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SplitVOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SplitVOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSplitVOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SplitVOptions() - x.Init(buf, n + offset) - return x - - # SplitVOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SplitVOptions - def NumSplits(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def SplitVOptionsStart(builder): builder.StartObject(1) -def SplitVOptionsAddNumSplits(builder, numSplits): builder.PrependInt32Slot(0, numSplits, 0) -def SplitVOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SquareOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SquareOptions.py deleted file mode 100644 index 56633f6a..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SquareOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SquareOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSquareOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SquareOptions() - x.Init(buf, n + offset) - return x - - # SquareOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def SquareOptionsStart(builder): builder.StartObject(0) -def SquareOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SquaredDifferenceOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SquaredDifferenceOptions.py deleted file mode 100644 index 906855d1..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SquaredDifferenceOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SquaredDifferenceOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSquaredDifferenceOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SquaredDifferenceOptions() - x.Init(buf, n + offset) - return x - - # SquaredDifferenceOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def SquaredDifferenceOptionsStart(builder): builder.StartObject(0) -def SquaredDifferenceOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SqueezeOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SqueezeOptions.py deleted file mode 100644 index 25b294dc..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SqueezeOptions.py +++ /dev/null @@ -1,46 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SqueezeOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSqueezeOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SqueezeOptions() - x.Init(buf, n + offset) - return x - - # SqueezeOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SqueezeOptions - def SqueezeDims(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # SqueezeOptions - def SqueezeDimsAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # SqueezeOptions - def SqueezeDimsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - -def SqueezeOptionsStart(builder): builder.StartObject(1) -def SqueezeOptionsAddSqueezeDims(builder, squeezeDims): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(squeezeDims), 0) -def SqueezeOptionsStartSqueezeDimsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def SqueezeOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/StridedSliceOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/StridedSliceOptions.py deleted file mode 100644 index 3bbb36b8..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/StridedSliceOptions.py +++ /dev/null @@ -1,62 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class StridedSliceOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsStridedSliceOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = StridedSliceOptions() - x.Init(buf, n + offset) - return x - - # StridedSliceOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # StridedSliceOptions - def BeginMask(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # StridedSliceOptions - def EndMask(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # StridedSliceOptions - def EllipsisMask(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # StridedSliceOptions - def NewAxisMask(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # StridedSliceOptions - def ShrinkAxisMask(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def StridedSliceOptionsStart(builder): builder.StartObject(5) -def StridedSliceOptionsAddBeginMask(builder, beginMask): builder.PrependInt32Slot(0, beginMask, 0) -def StridedSliceOptionsAddEndMask(builder, endMask): builder.PrependInt32Slot(1, endMask, 0) -def StridedSliceOptionsAddEllipsisMask(builder, ellipsisMask): builder.PrependInt32Slot(2, ellipsisMask, 0) -def StridedSliceOptionsAddNewAxisMask(builder, newAxisMask): builder.PrependInt32Slot(3, newAxisMask, 0) -def StridedSliceOptionsAddShrinkAxisMask(builder, shrinkAxisMask): builder.PrependInt32Slot(4, shrinkAxisMask, 0) -def StridedSliceOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SubGraph.py b/utensor_cgen/frontend/tflite_flatbuffer/SubGraph.py deleted file mode 100644 index eaa42fac..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SubGraph.py +++ /dev/null @@ -1,122 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SubGraph(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSubGraph(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SubGraph() - x.Init(buf, n + offset) - return x - - # SubGraph - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SubGraph - def Tensors(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - x = self._tab.Vector(o) - x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 - x = self._tab.Indirect(x) - from .Tensor import Tensor - obj = Tensor() - obj.Init(self._tab.Bytes, x) - return obj - return None - - # SubGraph - def TensorsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # SubGraph - def Inputs(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # SubGraph - def InputsAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # SubGraph - def InputsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # SubGraph - def Outputs(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # SubGraph - def OutputsAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # SubGraph - def OutputsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # SubGraph - def Operators(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - x = self._tab.Vector(o) - x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 - x = self._tab.Indirect(x) - from .Operator import Operator - obj = Operator() - obj.Init(self._tab.Bytes, x) - return obj - return None - - # SubGraph - def OperatorsLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # SubGraph - def Name(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - return self._tab.String(o + self._tab.Pos) - return None - -def SubGraphStart(builder): builder.StartObject(5) -def SubGraphAddTensors(builder, tensors): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(tensors), 0) -def SubGraphStartTensorsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def SubGraphAddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) -def SubGraphStartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def SubGraphAddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) -def SubGraphStartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def SubGraphAddOperators(builder, operators): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(operators), 0) -def SubGraphStartOperatorsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def SubGraphAddName(builder, name): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) -def SubGraphEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/SubOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/SubOptions.py deleted file mode 100644 index eccd7aba..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/SubOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class SubOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsSubOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = SubOptions() - x.Init(buf, n + offset) - return x - - # SubOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # SubOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - -def SubOptionsStart(builder): builder.StartObject(1) -def SubOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def SubOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/Tensor.py b/utensor_cgen/frontend/tflite_flatbuffer/Tensor.py deleted file mode 100644 index 9b5b8f87..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/Tensor.py +++ /dev/null @@ -1,90 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class Tensor(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsTensor(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = Tensor() - x.Init(buf, n + offset) - return x - - # Tensor - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # Tensor - def Shape(self, j): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - a = self._tab.Vector(o) - return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) - return 0 - - # Tensor - def ShapeAsNumpy(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o) - return 0 - - # Tensor - def ShapeLength(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.VectorLen(o) - return 0 - - # Tensor - def Type(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # Tensor - def Buffer(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) - return 0 - - # Tensor - def Name(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return self._tab.String(o + self._tab.Pos) - return None - - # Tensor - def Quantization(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) - if o != 0: - x = self._tab.Indirect(o + self._tab.Pos) - from .QuantizationParameters import QuantizationParameters - obj = QuantizationParameters() - obj.Init(self._tab.Bytes, x) - return obj - return None - - # Tensor - def IsVariable(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def TensorStart(builder): builder.StartObject(6) -def TensorAddShape(builder, shape): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(shape), 0) -def TensorStartShapeVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def TensorAddType(builder, type): builder.PrependInt8Slot(1, type, 0) -def TensorAddBuffer(builder, buffer): builder.PrependUint32Slot(2, buffer, 0) -def TensorAddName(builder, name): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) -def TensorAddQuantization(builder, quantization): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(quantization), 0) -def TensorAddIsVariable(builder, isVariable): builder.PrependBoolSlot(5, isVariable, 0) -def TensorEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/TensorType.py b/utensor_cgen/frontend/tflite_flatbuffer/TensorType.py deleted file mode 100644 index 2455835a..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/TensorType.py +++ /dev/null @@ -1,16 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -class TensorType(object): - FLOAT32 = 0 - FLOAT16 = 1 - INT32 = 2 - UINT8 = 3 - INT64 = 4 - STRING = 5 - BOOL = 6 - INT16 = 7 - COMPLEX64 = 8 - INT8 = 9 - diff --git a/utensor_cgen/frontend/tflite_flatbuffer/TileOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/TileOptions.py deleted file mode 100644 index ec8396dc..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/TileOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class TileOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsTileOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = TileOptions() - x.Init(buf, n + offset) - return x - - # TileOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def TileOptionsStart(builder): builder.StartObject(0) -def TileOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/TopKV2Options.py b/utensor_cgen/frontend/tflite_flatbuffer/TopKV2Options.py deleted file mode 100644 index ccd51033..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/TopKV2Options.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class TopKV2Options(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsTopKV2Options(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = TopKV2Options() - x.Init(buf, n + offset) - return x - - # TopKV2Options - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def TopKV2OptionsStart(builder): builder.StartObject(0) -def TopKV2OptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/TransposeConvOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/TransposeConvOptions.py deleted file mode 100644 index 423571c8..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/TransposeConvOptions.py +++ /dev/null @@ -1,46 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class TransposeConvOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsTransposeConvOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = TransposeConvOptions() - x.Init(buf, n + offset) - return x - - # TransposeConvOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # TransposeConvOptions - def Padding(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # TransposeConvOptions - def StrideW(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # TransposeConvOptions - def StrideH(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def TransposeConvOptionsStart(builder): builder.StartObject(3) -def TransposeConvOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def TransposeConvOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) -def TransposeConvOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) -def TransposeConvOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/TransposeOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/TransposeOptions.py deleted file mode 100644 index 42c596d9..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/TransposeOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class TransposeOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsTransposeOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = TransposeOptions() - x.Init(buf, n + offset) - return x - - # TransposeOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def TransposeOptionsStart(builder): builder.StartObject(0) -def TransposeOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/UnidirectionalSequenceLSTMOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/UnidirectionalSequenceLSTMOptions.py deleted file mode 100644 index 1b0c112c..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/UnidirectionalSequenceLSTMOptions.py +++ /dev/null @@ -1,54 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class UnidirectionalSequenceLSTMOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsUnidirectionalSequenceLSTMOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = UnidirectionalSequenceLSTMOptions() - x.Init(buf, n + offset) - return x - - # UnidirectionalSequenceLSTMOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # UnidirectionalSequenceLSTMOptions - def FusedActivationFunction(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 0 - - # UnidirectionalSequenceLSTMOptions - def CellClip(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # UnidirectionalSequenceLSTMOptions - def ProjClip(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) - return 0.0 - - # UnidirectionalSequenceLSTMOptions - def TimeMajor(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) - if o != 0: - return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) - return False - -def UnidirectionalSequenceLSTMOptionsStart(builder): builder.StartObject(4) -def UnidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def UnidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) -def UnidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) -def UnidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(3, timeMajor, 0) -def UnidirectionalSequenceLSTMOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/UniqueOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/UniqueOptions.py deleted file mode 100644 index 841c6977..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/UniqueOptions.py +++ /dev/null @@ -1,30 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class UniqueOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsUniqueOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = UniqueOptions() - x.Init(buf, n + offset) - return x - - # UniqueOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # UniqueOptions - def IdxOutType(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) - return 2 - -def UniqueOptionsStart(builder): builder.StartObject(1) -def UniqueOptionsAddIdxOutType(builder, idxOutType): builder.PrependInt8Slot(0, idxOutType, 2) -def UniqueOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/UnpackOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/UnpackOptions.py deleted file mode 100644 index eed40193..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/UnpackOptions.py +++ /dev/null @@ -1,38 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class UnpackOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsUnpackOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = UnpackOptions() - x.Init(buf, n + offset) - return x - - # UnpackOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - - # UnpackOptions - def Num(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - - # UnpackOptions - def Axis(self): - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) - if o != 0: - return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) - return 0 - -def UnpackOptionsStart(builder): builder.StartObject(2) -def UnpackOptionsAddNum(builder, num): builder.PrependInt32Slot(0, num, 0) -def UnpackOptionsAddAxis(builder, axis): builder.PrependInt32Slot(1, axis, 0) -def UnpackOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/WhereOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/WhereOptions.py deleted file mode 100644 index ab69f6aa..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/WhereOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class WhereOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsWhereOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = WhereOptions() - x.Init(buf, n + offset) - return x - - # WhereOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def WhereOptionsStart(builder): builder.StartObject(0) -def WhereOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/ZerosLikeOptions.py b/utensor_cgen/frontend/tflite_flatbuffer/ZerosLikeOptions.py deleted file mode 100644 index e6aa9639..00000000 --- a/utensor_cgen/frontend/tflite_flatbuffer/ZerosLikeOptions.py +++ /dev/null @@ -1,22 +0,0 @@ -# automatically generated by the FlatBuffers compiler, do not modify - -# namespace: tflite - -import flatbuffers - -class ZerosLikeOptions(object): - __slots__ = ['_tab'] - - @classmethod - def GetRootAsZerosLikeOptions(cls, buf, offset): - n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) - x = ZerosLikeOptions() - x.Init(buf, n + offset) - return x - - # ZerosLikeOptions - def Init(self, buf, pos): - self._tab = flatbuffers.table.Table(buf, pos) - -def ZerosLikeOptionsStart(builder): builder.StartObject(0) -def ZerosLikeOptionsEnd(builder): return builder.EndObject() diff --git a/utensor_cgen/frontend/tflite_flatbuffer/__init__.py b/utensor_cgen/third_party/__init__.py similarity index 100% rename from utensor_cgen/frontend/tflite_flatbuffer/__init__.py rename to utensor_cgen/third_party/__init__.py