We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7086629 commit 419cf6cCopy full SHA for 419cf6c
pytorch_optimizer/base/optimizer.py
@@ -90,7 +90,7 @@ def validate_reduction(reduction: str):
90
@staticmethod
91
def validate_update_frequency(update_frequency: int):
92
if update_frequency < 1:
93
- raise NegativeStepError(f'[-] update_frequency {update_frequency} must be positive')
+ raise NegativeStepError(update_frequency, step_type='update_frequency')
94
95
96
def validate_norm(norm: float):
0 commit comments