diff options
Diffstat (limited to 'ethosu/vela/tflite/ArgMaxOptions.py')
-rw-r--r-- | ethosu/vela/tflite/ArgMaxOptions.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ethosu/vela/tflite/ArgMaxOptions.py b/ethosu/vela/tflite/ArgMaxOptions.py index 741135dd..a4728fbb 100644 --- a/ethosu/vela/tflite/ArgMaxOptions.py +++ b/ethosu/vela/tflite/ArgMaxOptions.py @@ -3,18 +3,24 @@ # namespace: tflite import flatbuffers +from flatbuffers.compat import import_numpy +np = import_numpy() class ArgMaxOptions(object): __slots__ = ['_tab'] @classmethod - def GetRootAsArgMaxOptions(cls, buf, offset): + def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = ArgMaxOptions() x.Init(buf, n + offset) return x @classmethod + def GetRootAsArgMaxOptions(cls, buf, offset=0): + """This method is deprecated. Please switch to GetRootAs.""" + return cls.GetRootAs(buf, offset) + @classmethod def ArgMaxOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) @@ -30,5 +36,11 @@ class ArgMaxOptions(object): return 0 def ArgMaxOptionsStart(builder): builder.StartObject(1) +def Start(builder): + return ArgMaxOptionsStart(builder) def ArgMaxOptionsAddOutputType(builder, outputType): builder.PrependInt8Slot(0, outputType, 0) +def AddOutputType(builder, outputType): + return ArgMaxOptionsAddOutputType(builder, outputType) def ArgMaxOptionsEnd(builder): return builder.EndObject() +def End(builder): + return ArgMaxOptionsEnd(builder)
\ No newline at end of file |