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

Retracing warning on latest tensorflow version #17

Closed
ailec-wu opened this issue Feb 15, 2023 · 1 comment
Closed

Retracing warning on latest tensorflow version #17

ailec-wu opened this issue Feb 15, 2023 · 1 comment

Comments

@ailec-wu
Copy link

Hello, thank you for releasing your code for public use. When I run model.fit() I'm encountering a retracing warning. Per this stack overflow link I simply added "i = tf.cast(step, tf.int64)" after line 437 in levenberg_marquardt.py and the warning went away. I considered making a PR but this is a relatively small change.

@fabiodimarco
Copy link
Owner

fabiodimarco commented Feb 18, 2023

Hi @ailec-wu , thank you for reporting the issue.
At line 437 there is no variable step defined. Did you meant "i = tf.cast(i, tf.int64)"?
However, I do get an error on my machine if I add the conversion of i to tf.int64.
What version of tensorflow are you using? Could you provide me an example code to reproduce the warning?

@fabiodimarco fabiodimarco closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2023
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