1 # automatically generated by the FlatBuffers compiler, do not modify
3 # namespace: onert_tflite
8 class LeakyReluOptions(object):
12 def GetRootAsLeakyReluOptions(cls, buf, offset):
13 n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
14 x = LeakyReluOptions()
15 x.Init(buf, n + offset)
19 def Init(self, buf, pos):
20 self._tab = flatbuffers.table.Table(buf, pos)
24 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
26 return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
30 def LeakyReluOptionsStart(builder):
31 builder.StartObject(1)
34 def LeakyReluOptionsAddAlpha(builder, alpha):
35 builder.PrependFloat32Slot(0, alpha, 0.0)
38 def LeakyReluOptionsEnd(builder):
39 return builder.EndObject()