aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite/EmbeddingLookupSparseOptions.py
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2020-04-27 18:20:16 +0100
committerTim Hall <tim.hall@arm.com>2020-04-29 13:00:51 +0100
commit79d07d2cbf1c5013ab40bb46a6ccd4c569966536 (patch)
tree410d17239b417be5593b3e6800001b797f8d3f98 /ethosu/vela/tflite/EmbeddingLookupSparseOptions.py
parent47bca71566d4d10e48f5a4d66e1130b8bf60700d (diff)
downloadethos-u-vela-79d07d2cbf1c5013ab40bb46a6ccd4c569966536.tar.gz
Add Vela codebase0.1.0
- Added modules ethosu.vela and ethosu.mlw_codec. - Added README and various configuration files. Change-Id: I3690f8c8f5966306ecddaeb2793c30ca9c6e2eee
Diffstat (limited to 'ethosu/vela/tflite/EmbeddingLookupSparseOptions.py')
-rw-r--r--ethosu/vela/tflite/EmbeddingLookupSparseOptions.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/ethosu/vela/tflite/EmbeddingLookupSparseOptions.py b/ethosu/vela/tflite/EmbeddingLookupSparseOptions.py
new file mode 100644
index 00000000..7d9c1442
--- /dev/null
+++ b/ethosu/vela/tflite/EmbeddingLookupSparseOptions.py
@@ -0,0 +1,30 @@
+# automatically generated by the FlatBuffers compiler, do not modify
+
+# namespace: tflite
+
+import flatbuffers
+
+class EmbeddingLookupSparseOptions(object):
+ __slots__ = ['_tab']
+
+ @classmethod
+ def GetRootAsEmbeddingLookupSparseOptions(cls, buf, offset):
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
+ x = EmbeddingLookupSparseOptions()
+ x.Init(buf, n + offset)
+ return x
+
+ # EmbeddingLookupSparseOptions
+ def Init(self, buf, pos):
+ self._tab = flatbuffers.table.Table(buf, pos)
+
+ # EmbeddingLookupSparseOptions
+ def Combiner(self):
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
+ if o != 0:
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
+ return 0
+
+def EmbeddingLookupSparseOptionsStart(builder): builder.StartObject(1)
+def EmbeddingLookupSparseOptionsAddCombiner(builder, combiner): builder.PrependInt8Slot(0, combiner, 0)
+def EmbeddingLookupSparseOptionsEnd(builder): return builder.EndObject()