Skip to content
Snippets Groups Projects
Commit 7c8d1d47 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Fix issue when getting dict of MetaOperator.

parent e3207217
No related branches found
No related tags found
3 merge requests!279v0.4.0,!253v0.4.0,!163Export refactor
......@@ -133,8 +133,7 @@ class ExportNode(ABC):
self.node = aidge_node
self.operator = aidge_node.get_operator()
# Attributes are auto fetched from aidge operators
self.attributes = self.operator.attr.dict(
) if self.operator.attr is not None else {}
self.attributes = {} if isinstance(self.operator, aidge_core.MetaOperator_Op) or self.operator.attr is None else self.operator.attr.dict()
self.attributes["node"] = self.node
self.attributes["name"] = self.node.name()
self.attributes["nb_in"] = self.node.get_nb_inputs()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment