Skip to content

Commit

Permalink
Update collate.py
Browse files Browse the repository at this point in the history
Removed old/wrong code comment.
  • Loading branch information
jan-meissner authored Jun 29, 2022
1 parent c53947e commit e495331
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion torch_geometric/data/collate.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ def _batch_and_ptr(
elif (isinstance(slices, Sequence) and not isinstance(slices, str)
and isinstance(slices[0], Tensor)):
# Recursively batch elements of lists.
# outer list comprehension to convert list of tuples to list of lists
batch, ptr = [], []
for s in slices:
sub_batch, sub_ptr = _batch_and_ptr(s, device)
Expand Down

0 comments on commit e495331

Please sign in to comment.