1 # automatically generated by the FlatBuffers compiler, do not modify
3 # namespace: onert_tflite
8 class SparseToDenseOptions(object):
12 def GetRootAsSparseToDenseOptions(cls, buf, offset):
13 n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
14 x = SparseToDenseOptions()
15 x.Init(buf, n + offset)
18 # SparseToDenseOptions
19 def Init(self, buf, pos):
20 self._tab = flatbuffers.table.Table(buf, pos)
22 # SparseToDenseOptions
23 def ValidateIndices(self):
24 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
27 self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
31 def SparseToDenseOptionsStart(builder):
32 builder.StartObject(1)
35 def SparseToDenseOptionsAddValidateIndices(builder, validateIndices):
36 builder.PrependBoolSlot(0, validateIndices, 0)
39 def SparseToDenseOptionsEnd(builder):
40 return builder.EndObject()