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

How to save intermediate callback variables in inverse analysis? #1892

Open
wangxi0706 opened this issue Nov 27, 2024 · 1 comment
Open

How to save intermediate callback variables in inverse analysis? #1892

wangxi0706 opened this issue Nov 27, 2024 · 1 comment

Comments

@wangxi0706
Copy link

I am using Pytorch 2.2.2 as the backend. I define the variable callback as follows:

model.compile("L-BFGS", external_trainable_variables=cv)
variable = dde.callbacks.VariableValue(cv, period=1000, filename="cv.txt")
losshistory, train_state = model.train(callbacks=[variable])

However, after 4000 iterations, only the initial and final values are wirrten out. How could I get the ones during iterations?

@lululxvi
Copy link
Owner

Use another optimizer.

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

2 participants