Skip to content

Commit

Permalink
adjust code format again
Browse files Browse the repository at this point in the history
  • Loading branch information
Asthestarsfalll committed Jun 7, 2022
1 parent cab314a commit f86f9e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/paddle/optimizer/lr.py
Expand Up @@ -1903,8 +1903,8 @@ def __init__(self,
format(type(max_learning_rate)))
if max_learning_rate < 0:
raise ValueError(
"'max_learning_rate' must be a positive integer, but received {}".
format(max_learning_rate))
"'max_learning_rate' must be a positive integer, but received {}"
.format(max_learning_rate))

# check type and value of step_size_up
if not isinstance(step_size_up, int):
Expand All @@ -1924,8 +1924,8 @@ def __init__(self,
format(type(step_size_down)))
if step_size_down <= 0:
raise ValueError(
"'step_size_down' must be a positive integer, but received {}".
format(step_size_down))
"'step_size_down' must be a positive integer, but received {}"
.format(step_size_down))

# check type of exp_gamma
if not isinstance(exp_gamma, float):
Expand Down

1 comment on commit f86f9e3

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on f86f9e3 Jun 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #40698 Commit ID: f86f9e3 contains failed CI.

🔹 Failed: PR-CI-Static-Check

Unknown Failed
Unknown Failed

🔹 Failed: PR-CE-Framework

Unknown Failed
Unknown Failed

Please sign in to comment.