Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mananshah99 committed Dec 17, 2024
1 parent 2b1b327 commit 1f5077b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torch_geometric/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ def to_tuple(self) -> EdgeType:
f"tuple since it holds invalid characters")
return self.edge_type

def __reduce__(self) -> str | tuple[Any, ...]:
return (self.__class__, (self.edge_type, ))


# There exist some short-cuts to query edge-types (given that the full triplet
# can be uniquely reconstructed, e.g.:
Expand Down

0 comments on commit 1f5077b

Please sign in to comment.