MCPcopy Create free account
hub / github.com/CompVis/diff2flow / get_iter_exponential_schedule

Function get_iter_exponential_schedule

diff2flow/lr_schedulers.py:111–113  ·  view source on GitHub ↗
(optimizer: Optimizer, num_warmup_steps: int, num_training_steps: int, final_ratio: float)

Source from the content-addressed store, hash-verified

109
110
111def get_iter_exponential_schedule(optimizer: Optimizer, num_warmup_steps: int, num_training_steps: int, final_ratio: float):
112 lr_func = IterExponential(total_iter_length=num_training_steps, final_ratio=final_ratio, warmup_steps=num_warmup_steps)
113 return LambdaLR(optimizer=optimizer, lr_lambda=lr_func)
114
115
116if __name__ == "__main__":

Callers 1

lr_schedulers.pyFile · 0.85

Calls 1

IterExponentialClass · 0.85

Tested by

no test coverage detected