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

Method configure_optimizers

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

Source from the content-addressed store, hash-verified

110 return loss
111
112 def configure_optimizers(self):
113 optimizer = torch.optim.Adam(self.parameters(), lr=self.learning_rate)
114 return optimizer
115
116 def prepare_data(self):
117 MNIST(self.data_dir, train=True, download=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected