Skip to content

Commit

Permalink
Fix __eq__ for LayerAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinGeens committed May 15, 2024
1 parent d417d51 commit 457fd33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zigzag/workload/LayerAttribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ def __repr__(self):

def __jsonrepr__(self) -> Any:
return json_repr_handler(self.data)

def __eq__(self, other: object):
return isinstance(other, LayerAttribute) and self.data == other.data

0 comments on commit 457fd33

Please sign in to comment.