MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / configure_optimizers

Method configure_optimizers

locationencoder/imageencoder.py:54–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 return self.common_step(batch, batch_idx)
53
54 def configure_optimizers(self):
55 optimizer = optim.SGD(self.model.parameters(), self.lr,
56 momentum=self.momentum,
57 weight_decay=self.weight_decay)
58
59 scheduler = optim.lr_scheduler.MultiStepLR(optimizer, milestones=[30, 60, 90], gamma=0.1)
60 return [optimizer], [scheduler]
61

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected