aboutsummaryrefslogtreecommitdiff
path: root/python/tosa/MatMulAttribute.py
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-01-20 16:03:50 +0000
committerJames Ward <james.ward@arm.com>2023-01-23 18:23:02 +0000
commitea00fd0f76c39c650eececc1d640126584357095 (patch)
tree32807a6fd39a7eaa9c5d3843f03cc0122959b4c4 /python/tosa/MatMulAttribute.py
parentc15f7d52aa4f360eba2344449baa418b7608ac7c (diff)
downloadserialization_lib-ea00fd0f76c39c650eececc1d640126584357095.tar.gz
Remove accumulator attributes from all but AVG_POOL2D
* Also add missing CustomAttribute.py (flatbuffers generated file) Signed-off-by: James Ward <james.ward@arm.com> Change-Id: Ib71847e03d622995dd86afcb6ec9ed2bc147ee7a
Diffstat (limited to 'python/tosa/MatMulAttribute.py')
-rw-r--r--python/tosa/MatMulAttribute.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/python/tosa/MatMulAttribute.py b/python/tosa/MatMulAttribute.py
index af6ba0b..b42ebfa 100644
--- a/python/tosa/MatMulAttribute.py
+++ b/python/tosa/MatMulAttribute.py
@@ -42,14 +42,7 @@ class MatMulAttribute(object):
return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
return 0
- # MatMulAttribute
- def AccumDtype(self):
- o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
- if o != 0:
- return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
- return 0
-
-def MatMulAttributeStart(builder): builder.StartObject(3)
+def MatMulAttributeStart(builder): builder.StartObject(2)
def Start(builder):
return MatMulAttributeStart(builder)
def MatMulAttributeAddAZp(builder, aZp): builder.PrependInt32Slot(0, aZp, 0)
@@ -58,9 +51,6 @@ def AddAZp(builder, aZp):
def MatMulAttributeAddBZp(builder, bZp): builder.PrependInt32Slot(1, bZp, 0)
def AddBZp(builder, bZp):
return MatMulAttributeAddBZp(builder, bZp)
-def MatMulAttributeAddAccumDtype(builder, accumDtype): builder.PrependUint32Slot(2, accumDtype, 0)
-def AddAccumDtype(builder, accumDtype):
- return MatMulAttributeAddAccumDtype(builder, accumDtype)
def MatMulAttributeEnd(builder): return builder.EndObject()
def End(builder):
return MatMulAttributeEnd(builder) \ No newline at end of file