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

Method step

k_diffusion/utils.py:151–153  ·  view source on GitHub ↗

Updates the step count.

(self)

Source from the content-addressed store, hash-verified

149 return 0. if epoch < 0 else min(self.max_value, max(self.min_value, value))
150
151 def step(self):
152 """Updates the step count."""
153 self.last_epoch += 1
154
155
156class InverseLR(optim.lr_scheduler._LRScheduler):

Callers 3

mainFunction · 0.95
trainFunction · 0.45
trainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected