aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite/SpaceToDepthOptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/tflite/SpaceToDepthOptions.py')
-rw-r--r--ethosu/vela/tflite/SpaceToDepthOptions.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/ethosu/vela/tflite/SpaceToDepthOptions.py b/ethosu/vela/tflite/SpaceToDepthOptions.py
index 80f9f8ac..505e6d2f 100644
--- a/ethosu/vela/tflite/SpaceToDepthOptions.py
+++ b/ethosu/vela/tflite/SpaceToDepthOptions.py
@@ -10,13 +10,17 @@ class SpaceToDepthOptions(object):
__slots__ = ['_tab']
@classmethod
- def GetRootAsSpaceToDepthOptions(cls, buf, offset):
+ def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = SpaceToDepthOptions()
x.Init(buf, n + offset)
return x
@classmethod
+ def GetRootAsSpaceToDepthOptions(cls, buf, offset=0):
+ """This method is deprecated. Please switch to GetRootAs."""
+ return cls.GetRootAs(buf, offset)
+ @classmethod
def SpaceToDepthOptionsBufferHasIdentifier(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 SpaceToDepthOptions(object):
return 0
def SpaceToDepthOptionsStart(builder): builder.StartObject(1)
+def Start(builder):
+ return SpaceToDepthOptionsStart(builder)
def SpaceToDepthOptionsAddBlockSize(builder, blockSize): builder.PrependInt32Slot(0, blockSize, 0)
+def AddBlockSize(builder, blockSize):
+ return SpaceToDepthOptionsAddBlockSize(builder, blockSize)
def SpaceToDepthOptionsEnd(builder): return builder.EndObject()
+def End(builder):
+ return SpaceToDepthOptionsEnd(builder) \ No newline at end of file