Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Jan 19, 2023
1 parent b9b5b51 commit 5c6718e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions torch_geometric/data/lightning/datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@ def __init__(self, has_val: bool, has_test: bool, **kwargs):

kwargs.setdefault('batch_size', 1)
kwargs.setdefault('num_workers', 0)
kwargs.setdefault('pin_memory', True)
kwargs.setdefault('persistent_workers',
kwargs.get('num_workers', 0) > 0)

if 'shuffle' in kwargs:
warnings.warn(f"The 'shuffle={kwargs['shuffle']}' option is "
f"ignored in '{self.__class__.__name__}'. Remove it "
f"from the argument list to disable this warning")
del kwargs['shuffle']

kwargs.setdefault('pin_memory', True)
kwargs.setdefault('persistent_workers',
kwargs.get('num_workers', 0) > 0)

self.kwargs = kwargs

def prepare_data(self):
Expand Down

0 comments on commit 5c6718e

Please sign in to comment.