Skip to content

Commit

Permalink
update code 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lijialin03 committed Dec 17, 2024
1 parent 16c17a3 commit bec0470
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deepxde/optimizers/paddle/optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def get(params, optimizer, learning_rate=None, decay=None, weight_decay=None):
not isinstance(weight_decay, paddle.regularizer.L2Decay)
or weight_decay._coeff == 0
):
raise ValueError(
"AdamW optimizer requires non-zero L2 regularizer"
)
raise ValueError("AdamW optimizer requires non-zero L2 regularizer")
return paddle.optimizer.AdamW(
learning_rate=learning_rate,
parameters=params,
Expand Down

0 comments on commit bec0470

Please sign in to comment.