aboutsummaryrefslogtreecommitdiff
path: root/python/tosa/PadAttribute.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tosa/PadAttribute.py')
-rw-r--r--python/tosa/PadAttribute.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/python/tosa/PadAttribute.py b/python/tosa/PadAttribute.py
index 301bf17..c4084dc 100644
--- a/python/tosa/PadAttribute.py
+++ b/python/tosa/PadAttribute.py
@@ -55,8 +55,15 @@ class PadAttribute(object):
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
return o == 0
+ # PadAttribute
+ def Type(self):
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
+ if o != 0:
+ return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
+ return 0
+
def PadAttributeStart(builder):
- builder.StartObject(1)
+ builder.StartObject(2)
def Start(builder):
PadAttributeStart(builder)
@@ -73,6 +80,12 @@ def PadAttributeStartPadConstVector(builder, numElems):
def StartPadConstVector(builder, numElems: int) -> int:
return PadAttributeStartPadConstVector(builder, numElems)
+def PadAttributeAddType(builder, type):
+ builder.PrependUint32Slot(1, type, 0)
+
+def AddType(builder, type):
+ PadAttributeAddType(builder, type)
+
def PadAttributeEnd(builder):
return builder.EndObject()