Skip to content

Commit 83836f5

Browse files
committed
fix progress bar counts for l-bfgs
1 parent 765e722 commit 83836f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensordiffeq/optimizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def eager_lbfgs(opfunc, x, state, maxIter=100, learningRate=1, do_verbose=True):
272272
print('function value changing less than tolX' + str(tf.abs(f - f_old)))
273273
break
274274

275-
t_.set_description('L-BFGS epoch %i' % (epoch+1))
275+
t_.set_description('L-BFGS epoch %i' % (nIter+1))
276276
if do_verbose:
277277
if nIter % 10 == 0:
278278
t_.set_postfix(loss=f.numpy())

0 commit comments

Comments
 (0)