Skip to content

Commit 419cf6c

Browse files
committed
fix: validate_update_frequency
1 parent 7086629 commit 419cf6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_optimizer/base/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def validate_reduction(reduction: str):
9090
@staticmethod
9191
def validate_update_frequency(update_frequency: int):
9292
if update_frequency < 1:
93-
raise NegativeStepError(f'[-] update_frequency {update_frequency} must be positive')
93+
raise NegativeStepError(update_frequency, step_type='update_frequency')
9494

9595
@staticmethod
9696
def validate_norm(norm: float):

0 commit comments

Comments
 (0)