Skip to content

Commit

Permalink
Merge branch 'master' of personal:michailmelonas/pytorch_geometric in…
Browse files Browse the repository at this point in the history
…to add-token-gt
  • Loading branch information
michailramp committed Dec 18, 2024
2 parents 58fa8ed + ab2b458 commit c1f55a0
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 c1f55a0

Please sign in to comment.