Skip to content

Commit

Permalink
Merge branch 'master' into rebase-txt2kg
Browse files Browse the repository at this point in the history
  • Loading branch information
puririshi98 authored Dec 17, 2024
2 parents 747f0ea + ab2b458 commit 7768148
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) -> tuple[Any, 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 7768148

Please sign in to comment.