aboutsummaryrefslogtreecommitdiff
path: root/python/tosa/ClampAttribute.py
diff options
context:
space:
mode:
authorTai Ly <tai.ly@arm.com>2024-04-09 19:31:24 +0000
committerTai Ly <tai.ly@arm.com>2024-04-09 19:31:30 +0000
commit57d781883142db8a45fe98ac1a1dfacc49cba78a (patch)
treef700914f2775fb178764af200794980237bda895 /python/tosa/ClampAttribute.py
parentce911a2f1d9cd678fb9fe82a40c86ad0c6772f5a (diff)
downloadserialization_lib-57d781883142db8a45fe98ac1a1dfacc49cba78a.tar.gz
[serialization_lib] Remove unused type field from Pad and Clamp
This patch removes the "type" field from PadAttribute and ClampAttribute because they are unused and unneeded. Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I378291b340ecee86824f25b3887aa4511207db23
Diffstat (limited to 'python/tosa/ClampAttribute.py')
-rw-r--r--python/tosa/ClampAttribute.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/python/tosa/ClampAttribute.py b/python/tosa/ClampAttribute.py
index 1189acb..6a41498 100644
--- a/python/tosa/ClampAttribute.py
+++ b/python/tosa/ClampAttribute.py
@@ -82,15 +82,8 @@ class ClampAttribute(object):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
return o == 0
- # ClampAttribute
- def Type(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 ClampAttributeStart(builder):
- builder.StartObject(3)
+ builder.StartObject(2)
def Start(builder):
ClampAttributeStart(builder)
@@ -119,12 +112,6 @@ def ClampAttributeStartMaxValVector(builder, numElems):
def StartMaxValVector(builder, numElems: int) -> int:
return ClampAttributeStartMaxValVector(builder, numElems)
-def ClampAttributeAddType(builder, type):
- builder.PrependUint32Slot(2, type, 0)
-
-def AddType(builder, type):
- ClampAttributeAddType(builder, type)
-
def ClampAttributeEnd(builder):
return builder.EndObject()