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

Error in Roundtrip Tutorial: "Checkpoint was expecting d_optimizer to be a trackable object” #18

Open
rnayebi21 opened this issue Feb 24, 2025 · 0 comments

Comments

@rnayebi21
Copy link

Description:

I encountered an error while running the Roundtrip tutorial from the repository (cloned directly from GitHub). The error suggests that d_optimizer is not trackable when used in a TensorFlow Checkpoint. It seems to be related to Keras optimizers.

Steps to reproduce:

Running the file Roundtrip/src/tutorial.ipynb

Specifically the cell that produces the error is the third one at line:

model = pyrt.Roundtrip(params=params,random_seed=123)

Error:

ValueError: Checkpointwas expecting d_optimizer to be a trackable object (an object derived fromTrackable), got <keras.src.optimizers.adam.Adam object at 0x7f8abedf72c0>. If you believe this object should be trackable (i.e. it is part of the TensorFlow Python API and manages state), please open an issue.

Any guidance on this issue would be greatly appreciated!

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