Skip to content

Simple data loader

Compare
Choose a tag to compare
@williamFalcon williamFalcon released this 25 Jul 17:28
· 9521 commits to master since this release

Simplified data loader.

Added a decorator to do lazy loading internally:

Old:

@property
def tng_dataloader(self):
      if self._tng_dataloader is None:
               self._tng_dataloader = DataLoader(...)
      return self.tng_dataloder

Now:

@ptl.data_loader
def tng_dataloader(self):
      return DataLoader(...)