MCPcopy Index your code
hub / github.com/huggingface/diffusers / SchedulerType

Class SchedulerType

src/diffusers/optimization.py:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class SchedulerType(Enum):
30 LINEAR = "linear"
31 COSINE = "cosine"
32 COSINE_WITH_RESTARTS = "cosine_with_restarts"
33 POLYNOMIAL = "polynomial"
34 CONSTANT = "constant"
35 CONSTANT_WITH_WARMUP = "constant_with_warmup"
36 PIECEWISE_CONSTANT = "piecewise_constant"
37
38
39def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…