diff options
Diffstat (limited to 'ethosu/vela/tflite/TopKV2Options.py')
-rw-r--r-- | ethosu/vela/tflite/TopKV2Options.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ethosu/vela/tflite/TopKV2Options.py b/ethosu/vela/tflite/TopKV2Options.py index ccd51033..c8c13369 100644 --- a/ethosu/vela/tflite/TopKV2Options.py +++ b/ethosu/vela/tflite/TopKV2Options.py @@ -3,6 +3,8 @@ # namespace: tflite import flatbuffers +from flatbuffers.compat import import_numpy +np = import_numpy() class TopKV2Options(object): __slots__ = ['_tab'] @@ -14,6 +16,10 @@ class TopKV2Options(object): x.Init(buf, n + offset) return x + @classmethod + def TopKV2OptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): + return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) + # TopKV2Options def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) |