aboutsummaryrefslogtreecommitdiff
path: root/python/tosa/FullyConnectedAttribute.py
diff options
context:
space:
mode:
authorTai Ly <tai.ly@arm.com>2023-07-03 22:14:05 +0000
committerTai Ly <tai.ly@arm.com>2023-07-18 21:00:58 +0000
commit89963aa8fad822ab7a6e1ff92f6b7b4ee0b9350c (patch)
tree123b51806c246b5c10fe20d2f90609d03d373b0c /python/tosa/FullyConnectedAttribute.py
parent0bc46e44e6501788c4661d1f03572c14ea2ecc89 (diff)
downloadserialization_lib-89963aa8fad822ab7a6e1ff92f6b7b4ee0b9350c.tar.gz
Update to use GenText
changed GenerateText to GenText, with reversed return polarity. updated flatbuffer to v23.5.26, and regenerated headers Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I7278dfe9c7b55b9afbe2329e3058b63a1cdce586
Diffstat (limited to 'python/tosa/FullyConnectedAttribute.py')
-rw-r--r--python/tosa/FullyConnectedAttribute.py27
1 files changed, 19 insertions, 8 deletions
diff --git a/python/tosa/FullyConnectedAttribute.py b/python/tosa/FullyConnectedAttribute.py
index 892b0da..8854503 100644
--- a/python/tosa/FullyConnectedAttribute.py
+++ b/python/tosa/FullyConnectedAttribute.py
@@ -42,15 +42,26 @@ class FullyConnectedAttribute(object):
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
return 0
-def FullyConnectedAttributeStart(builder): builder.StartObject(2)
+def FullyConnectedAttributeStart(builder):
+ builder.StartObject(2)
+
def Start(builder):
- return FullyConnectedAttributeStart(builder)
-def FullyConnectedAttributeAddInputZp(builder, inputZp): builder.PrependInt32Slot(0, inputZp, 0)
+ FullyConnectedAttributeStart(builder)
+
+def FullyConnectedAttributeAddInputZp(builder, inputZp):
+ builder.PrependInt32Slot(0, inputZp, 0)
+
def AddInputZp(builder, inputZp):
- return FullyConnectedAttributeAddInputZp(builder, inputZp)
-def FullyConnectedAttributeAddWeightZp(builder, weightZp): builder.PrependInt32Slot(1, weightZp, 0)
+ FullyConnectedAttributeAddInputZp(builder, inputZp)
+
+def FullyConnectedAttributeAddWeightZp(builder, weightZp):
+ builder.PrependInt32Slot(1, weightZp, 0)
+
def AddWeightZp(builder, weightZp):
- return FullyConnectedAttributeAddWeightZp(builder, weightZp)
-def FullyConnectedAttributeEnd(builder): return builder.EndObject()
+ FullyConnectedAttributeAddWeightZp(builder, weightZp)
+
+def FullyConnectedAttributeEnd(builder):
+ return builder.EndObject()
+
def End(builder):
- return FullyConnectedAttributeEnd(builder) \ No newline at end of file
+ return FullyConnectedAttributeEnd(builder)