diff options
Diffstat (limited to 'ethosu/vela/tflite/SparseToDenseOptions.py')
-rw-r--r-- | ethosu/vela/tflite/SparseToDenseOptions.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ethosu/vela/tflite/SparseToDenseOptions.py b/ethosu/vela/tflite/SparseToDenseOptions.py index 328aadf4..185b2a0c 100644 --- a/ethosu/vela/tflite/SparseToDenseOptions.py +++ b/ethosu/vela/tflite/SparseToDenseOptions.py @@ -10,13 +10,17 @@ class SparseToDenseOptions(object): __slots__ = ['_tab'] @classmethod - def GetRootAsSparseToDenseOptions(cls, buf, offset): + def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = SparseToDenseOptions() x.Init(buf, n + offset) return x @classmethod + def GetRootAsSparseToDenseOptions(cls, buf, offset=0): + """This method is deprecated. Please switch to GetRootAs.""" + return cls.GetRootAs(buf, offset) + @classmethod def SparseToDenseOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) @@ -32,5 +36,11 @@ class SparseToDenseOptions(object): return False def SparseToDenseOptionsStart(builder): builder.StartObject(1) +def Start(builder): + return SparseToDenseOptionsStart(builder) def SparseToDenseOptionsAddValidateIndices(builder, validateIndices): builder.PrependBoolSlot(0, validateIndices, 0) +def AddValidateIndices(builder, validateIndices): + return SparseToDenseOptionsAddValidateIndices(builder, validateIndices) def SparseToDenseOptionsEnd(builder): return builder.EndObject() +def End(builder): + return SparseToDenseOptionsEnd(builder)
\ No newline at end of file |