Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / tools / tflitefile_tool / tflite / LSHProjectionOptions.py
1 # automatically generated by the FlatBuffers compiler, do not modify
2
3 # namespace: onert_tflite
4
5 import flatbuffers
6
7
8 class LSHProjectionOptions(object):
9     __slots__ = ['_tab']
10
11     @classmethod
12     def GetRootAsLSHProjectionOptions(cls, buf, offset):
13         n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
14         x = LSHProjectionOptions()
15         x.Init(buf, n + offset)
16         return x
17
18     # LSHProjectionOptions
19     def Init(self, buf, pos):
20         self._tab = flatbuffers.table.Table(buf, pos)
21
22     # LSHProjectionOptions
23     def Type(self):
24         o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
25         if o != 0:
26             return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
27         return 0
28
29
30 def LSHProjectionOptionsStart(builder):
31     builder.StartObject(1)
32
33
34 def LSHProjectionOptionsAddType(builder, type):
35     builder.PrependInt8Slot(0, type, 0)
36
37
38 def LSHProjectionOptionsEnd(builder):
39     return builder.EndObject()