Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set the output frequency of LBFGS with pytorch backend #1871

Open
wangxi0706 opened this issue Oct 31, 2024 · 0 comments
Open

Cannot set the output frequency of LBFGS with pytorch backend #1871

wangxi0706 opened this issue Oct 31, 2024 · 0 comments

Comments

@wangxi0706
Copy link

Dear authors,

I use pytorch 2.2.2 as backend on a GPU. When setting the "display_every=1" with a LBFGS optimizer, it still print and output results every 1000 iterations. How can I fix it?

The code is :
dde.optimizers.config.set_LBFGS_options(
maxcor=50,
ftol= 1e-10,
gtol=1e-12,
maxiter=1000,
maxls=50,
)
model.compile("L-BFGS")
losshistory, train_state = model.train(display_every=1)

The output:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant