Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet committed Jul 2, 2024
1 parent f196208 commit 6914000
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shark_turbine/transforms/general/add_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def parse_metadata_dict(metadata_dict: dict) -> DictAttr:
metadata_dict_attr = parse_metadata_dict(self.inp_metadata)
for func_op in self.funcs:
for attr in func_op.op.attributes:
if isinstance(attr.attr, StringAttr) and attr.attr.value == self.func_name:
if (
isinstance(attr.attr, StringAttr)
and attr.attr.value == self.func_name
):
func_op.op.attributes["iree.reflection"] = metadata_dict_attr
return self.mlir_module

Expand Down

0 comments on commit 6914000

Please sign in to comment.