MCPcopy Index your code
hub / github.com/YesianRohn/TextSSR / SchedulerType

Class SchedulerType

diffusers/src/diffusers/optimization.py:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29
30class SchedulerType(Enum):
31 LINEAR = "linear"
32 COSINE = "cosine"
33 COSINE_WITH_RESTARTS = "cosine_with_restarts"
34 POLYNOMIAL = "polynomial"
35 CONSTANT = "constant"
36 CONSTANT_WITH_WARMUP = "constant_with_warmup"
37 PIECEWISE_CONSTANT = "piecewise_constant"
38
39
40def get_constant_schedule(optimizer: Optimizer, last_epoch: int = -1) -> LambdaLR:

Callers 1

get_schedulerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected