MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

k_diffusion/utils.py:250–254  ·  view source on GitHub ↗
(self, optimizer, warmup=0., last_epoch=-1, verbose=False)

Source from the content-addressed store, hash-verified

248 """
249
250 def __init__(self, optimizer, warmup=0., last_epoch=-1, verbose=False):
251 if not 0. <= warmup < 1:
252 raise ValueError('Invalid value for warmup')
253 self.warmup = warmup
254 super().__init__(optimizer, last_epoch, verbose)
255
256 def get_lr(self):
257 if not self._get_lr_called_within_step:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected