MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / build_scheduler

Method build_scheduler

usr/task.py:75–76  ·  view source on GitHub ↗
(self, optimizer)

Source from the content-addressed store, hash-verified

73 return outputs
74
75 def build_scheduler(self, optimizer):
76 return torch.optim.lr_scheduler.StepLR(optimizer, hparams['decay_steps'], gamma=0.5)
77
78 def optimizer_step(self, epoch, batch_idx, optimizer, optimizer_idx):
79 if optimizer is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected