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

Method prepare_data

intermediate_source/mnist_train_nas.py:116–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 return optimizer
115
116 def prepare_data(self):
117 MNIST(self.data_dir, train=True, download=True)
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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected