Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mananshah99 committed Jul 26, 2022
1 parent 5b4027e commit c4507eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torch_geometric/loader/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def pin_memory(data, device=None):
return data.pin_memory()
if len(__torch_pin_memory_params) > 1:
return __torch_pin_memory(data, device)
else:
return __torch_pin_memory(data)
return __torch_pin_memory(data)


torch.utils.data._utils.pin_memory.pin_memory = pin_memory
Expand Down

0 comments on commit c4507eb

Please sign in to comment.