MCPcopy Create free account
hub / github.com/pytorch/tutorials / setup

Method setup

intermediate_source/mnist_train_nas.py:120–122  ·  view source on GitHub ↗
(self, stage=None)

Source from the content-addressed store, hash-verified

118 MNIST(self.data_dir, train=False, download=True)
119
120 def setup(self, stage=None):
121 self.mnist_train = MNIST(self.data_dir, train=True, transform=self.transform)
122 self.mnist_val = MNIST(self.data_dir, train=False, transform=self.transform)
123
124 def train_dataloader(self):
125 return DataLoader(self.mnist_train, batch_size=self.batch_size)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected