Skip to content

Commit

Permalink
0.4.4 fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
devzhk committed May 16, 2022
1 parent 3524372 commit 4bda067
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = CGDs
version = 0.4.3
version = 0.4.4
author = Hongkai Zheng
author_email = [email protected]
description = Adaptive Competitive Gradient Descent optimizer
Expand Down
2 changes: 1 addition & 1 deletion src/CGDs/acgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def set_lr(self, lr_max, lr_min):
print('Maximizing side learning rate: {:.4f}\n '
'Minimizing side learning rate: {:.4f}'.format(lr_max, lr_min))

def step(self, loss, trigger=None):
def step(self, loss, trigger=0.0):
'''
Update model weights using ACGD
:param loss: objective function
Expand Down
2 changes: 1 addition & 1 deletion src/CGDs/cgd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def conjugate_gradient(grad_x, grad_y,

def Hvp_vec(grad_vec, params, vec,
retain_graph=False,
trigger=None,
trigger=0.0,
reducer=None,
rebuild=False):
'''
Expand Down

0 comments on commit 4bda067

Please sign in to comment.