MCPcopy Create free account
hub / github.com/Ugness/ELF-pytorch / setup

Method setup

pytorch_lightning/lightning_module.py:360–362  ·  view source on GitHub ↗
(self, stage=None)

Source from the content-addressed store, hash-verified

358 self._eval_dataset = None
359
360 def setup(self, stage=None):
361 if self._train_dataset is None:
362 self._train_dataset, self._eval_dataset = load_dataset(self.cfg)
363
364 def train_dataloader(self):
365 # Lightning attaches the DistributedSampler when strategy=ddp.

Callers

nothing calls this directly

Calls 1

load_datasetFunction · 0.90

Tested by

no test coverage detected