diff options
Diffstat (limited to 'ethosu/vela/tflite/LogicalNotOptions.py')
-rw-r--r-- | ethosu/vela/tflite/LogicalNotOptions.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ethosu/vela/tflite/LogicalNotOptions.py b/ethosu/vela/tflite/LogicalNotOptions.py index ce66ec3b..4c29fdf3 100644 --- a/ethosu/vela/tflite/LogicalNotOptions.py +++ b/ethosu/vela/tflite/LogicalNotOptions.py @@ -3,18 +3,24 @@ # namespace: tflite import flatbuffers +from flatbuffers.compat import import_numpy +np = import_numpy() class LogicalNotOptions(object): __slots__ = ['_tab'] @classmethod - def GetRootAsLogicalNotOptions(cls, buf, offset): + def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = LogicalNotOptions() x.Init(buf, n + offset) return x @classmethod + def GetRootAsLogicalNotOptions(cls, buf, offset=0): + """This method is deprecated. Please switch to GetRootAs.""" + return cls.GetRootAs(buf, offset) + @classmethod def LogicalNotOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) @@ -23,4 +29,8 @@ class LogicalNotOptions(object): self._tab = flatbuffers.table.Table(buf, pos) def LogicalNotOptionsStart(builder): builder.StartObject(0) +def Start(builder): + return LogicalNotOptionsStart(builder) def LogicalNotOptionsEnd(builder): return builder.EndObject() +def End(builder): + return LogicalNotOptionsEnd(builder)
\ No newline at end of file |