Skip to content

Commit

Permalink
tqdm for triplets
Browse files Browse the repository at this point in the history
  • Loading branch information
riship committed Jan 10, 2025
1 parent 02c53ed commit 139e0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_geometric/data/large_graph_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def from_triplets(
Args:
triplets (KnowledgeGraphLike): Series of triplets representing
knowledge graph relations.
knowledge graph relations. Example: [("cats", "eat", dogs")].
pre_transform (Optional[Callable[[TripletLike], TripletLike]]):
Optional preprocessing function to apply to triplets.
Defaults to None.
Expand All @@ -182,7 +182,7 @@ def apply_transform(
for trip in trips:
yield pre_transform(trip)

triplets = apply_transform(triplets)
triplets = list(apply_transform(triplets))

for h, r, t in tqdm(triplets, desc="Indexing Triples"):

Expand Down

0 comments on commit 139e0f8

Please sign in to comment.