Skip to content

Commit

Permalink
Fix the reduce method for Ivy Shape (#28212)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dsantra92 committed Feb 9, 2024
1 parent c60b3a2 commit 81a0371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def __rmod__(self, other):
return other % self._shape

def __reduce__(self):
return (self._shape,)
return (self.__class__, (self._shape,))

def as_dimension(self, other):
if isinstance(other, self._shape):
Expand Down

0 comments on commit 81a0371

Please sign in to comment.