We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae4815 commit c6afea5Copy full SHA for c6afea5
mlir/python/mlir/dialects/func.py
@@ -106,9 +106,7 @@ def add_entry_block(self, arg_locs: Optional[Sequence[Location]] = None):
106
@property
107
def arg_attrs(self):
108
if ARGUMENT_ATTRIBUTE_NAME not in self.attributes:
109
- self.attributes[ARGUMENT_ATTRIBUTE_NAME] = ArrayAttr.get(
110
- [DictAttr.get({}) for _ in self.type.inputs]
111
- )
+ return ArrayAttr.get([DictAttr.get({}) for _ in self.type.inputs])
112
return ArrayAttr(self.attributes[ARGUMENT_ATTRIBUTE_NAME])
113
114
@arg_attrs.setter
0 commit comments