aboutsummaryrefslogtreecommitdiff
path: root/tools/tosa.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tosa.py')
-rw-r--r--tools/tosa.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/tosa.py b/tools/tosa.py
index 016aba6..a0e4ddb 100644
--- a/tools/tosa.py
+++ b/tools/tosa.py
@@ -89,10 +89,11 @@ class TOSAOperatorArgument:
class TOSAOperatorDataTypeSupport:
- def __init__(self, mode, tymap, profiles=None):
+ def __init__(self, mode, tymap, version_added, profiles):
self.mode = mode
self.tymap = tymap
self.profiles = profiles
+ self.version_added = version_added
class TOSAOperator:
@@ -195,6 +196,7 @@ class TOSASpec:
for tysup in op.findall("typesupport"):
tsmode = tysup.get("mode")
tsmap = {}
+ version_added = tysup.get("version_added")
profiles = tysup.findall("op_profile")
tsprofiles = []
for p in profiles:
@@ -208,7 +210,9 @@ class TOSASpec:
tsprofiles.append(tsp_name)
for ty in types:
tsmap[ty] = tysup.get(ty)
- typesupports.append(TOSAOperatorDataTypeSupport(tsmode, tsmap, tsprofiles))
+ typesupports.append(
+ TOSAOperatorDataTypeSupport(tsmode, tsmap, version_added, tsprofiles)
+ )
return TOSAOperator(name, args, types, typesupports)
def __load_operator_argument(self, arg, op_name):