Skip to content

Commit 489bb56

Browse files
committed
fix doc style
1 parent cbf0b35 commit 489bb56

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/diffusers/optimization.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ def get_constant_schedule_with_rules(optimizer: Optimizer, rules: str, last_epoc
8686
optimizer ([`~torch.optim.Optimizer`]):
8787
The optimizer for which to schedule the learning rate.
8888
rule (`string`):
89-
The rules for the learning rate.
90-
ex: rules="1:10,0.1:20,0.01:30,0.005"
91-
it means that the learning rate is multiple 1 for the first 10 steps, mutiple 0.1 for the
92-
next 20 steps, multiple 0.01 for the next 30 steps and multiple 0.005 for the other steps.
89+
The rules for the learning rate. ex: rules="1:10,0.1:20,0.01:30,0.005" it means that the learning rate is
90+
multiple 1 for the first 10 steps, mutiple 0.1 for the next 20 steps, multiple 0.01 for the next 30 steps
91+
and multiple 0.005 for the other steps.
9392
last_epoch (`int`, *optional*, defaults to -1):
9493
The index of the last epoch when resuming training.
9594

0 commit comments

Comments
 (0)