Add support for namespaced attributes in DynamicAttributes
Compare changes
Files
21+ 22
− 0
@@ -103,6 +103,22 @@ class Tensor : public Data,
@@ -203,6 +219,12 @@ class Tensor : public Data,
Add support for namespaced attributes in DynamicAttribute
with a recursive approach (a DynamicAttribute
can have an attribute of type DynamicAttribute
). Usage example (both syntaxes are correct):
attrs.get_attr("mem.data.b")
attrs.get_attr("mem").get_attr("data").get_attr("b")
This is a preliminary work in order to introduce a general mechanism for specifiyng backend and export attributes.
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent