MCPcopy Create free account
hub / github.com/ant-research/CoDeF / train_dataloader

Method train_dataloader

train.py:252–258  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

250 return [self.optimizer], [lr_dict]
251
252 def train_dataloader(self):
253 sampler = DistributedSampler(self.train_dataset, shuffle=True)
254 return DataLoader(self.train_dataset,
255 num_workers=4,
256 batch_size=self.hparams.batch_size,
257 sampler=sampler,
258 pin_memory=True)
259
260 def val_dataloader(self):
261 return DataLoader(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected