Skip to content

Commit

Permalink
style: ** operator
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Jul 14, 2024
1 parent 0a03fe8 commit a650a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_optimizer/optimizer/lomo.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ def __init__(
model: nn.Module,
lr: float = 1e-3,
weight_decay: float = 0.0,
loss_scale: float = 2**10,
loss_scale: float = 2.0 ** 10,
clip_threshold: float = 1.0,
decay_rate: float = -0.8,
clip_grad_norm: Optional[float] = None,
clip_grad_value: Optional[float] = None,
eps1: float = 1e-30,
eps2: float = 1e-3,
) -> None: # skip: fmt
) -> None: # fmt: skip
self.validate_learning_rate(lr)
self.validate_non_negative(weight_decay, 'weight_decay')
self.validate_non_negative(loss_scale, 'loss_scale')
Expand Down

0 comments on commit a650a7f

Please sign in to comment.