1 # automatically generated by the FlatBuffers compiler, do not modify
3 # namespace: onert_tflite
8 class ConcatenationOptions(object):
12 def GetRootAsConcatenationOptions(cls, buf, offset):
13 n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
14 x = ConcatenationOptions()
15 x.Init(buf, n + offset)
18 # ConcatenationOptions
19 def Init(self, buf, pos):
20 self._tab = flatbuffers.table.Table(buf, pos)
22 # ConcatenationOptions
24 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
26 return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
29 # ConcatenationOptions
30 def FusedActivationFunction(self):
31 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
33 return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
37 def ConcatenationOptionsStart(builder):
38 builder.StartObject(2)
41 def ConcatenationOptionsAddAxis(builder, axis):
42 builder.PrependInt32Slot(0, axis, 0)
45 def ConcatenationOptionsAddFusedActivationFunction(builder, fusedActivationFunction):
46 builder.PrependInt8Slot(1, fusedActivationFunction, 0)
49 def ConcatenationOptionsEnd(builder):
50 return builder.EndObject()