aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite/ReducerOptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/tflite/ReducerOptions.py')
-rw-r--r--ethosu/vela/tflite/ReducerOptions.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/ethosu/vela/tflite/ReducerOptions.py b/ethosu/vela/tflite/ReducerOptions.py
index 56174b04..e5f37d78 100644
--- a/ethosu/vela/tflite/ReducerOptions.py
+++ b/ethosu/vela/tflite/ReducerOptions.py
@@ -10,13 +10,17 @@ class ReducerOptions(object):
__slots__ = ['_tab']
@classmethod
- def GetRootAsReducerOptions(cls, buf, offset):
+ def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = ReducerOptions()
x.Init(buf, n + offset)
return x
@classmethod
+ def GetRootAsReducerOptions(cls, buf, offset=0):
+ """This method is deprecated. Please switch to GetRootAs."""
+ return cls.GetRootAs(buf, offset)
+ @classmethod
def ReducerOptionsBufferHasIdentifier(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 ReducerOptions(object):
return False
def ReducerOptionsStart(builder): builder.StartObject(1)
+def Start(builder):
+ return ReducerOptionsStart(builder)
def ReducerOptionsAddKeepDims(builder, keepDims): builder.PrependBoolSlot(0, keepDims, 0)
+def AddKeepDims(builder, keepDims):
+ return ReducerOptionsAddKeepDims(builder, keepDims)
def ReducerOptionsEnd(builder): return builder.EndObject()
+def End(builder):
+ return ReducerOptionsEnd(builder) \ No newline at end of file