-
Notifications
You must be signed in to change notification settings - Fork 26
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
R Warning / Python Error: module 'tensorflow' has no attribute 'reset_default_graph' #47
Comments
Ran into this today as a first time user – from what I can tell at least the saved data seems fine, and I can analyze my runs just fine, or am I missing something? |
In the meantime I looked into this issue slightly more. AFAIK the graphs in TensorFlow are used for representation of the models (e.g., in TensorBoard’s Graphs dashboard). Thus, this issue should not impact your actual calculations / training. However, since I am neither very familiar with TensorFlow, I am not sure (@dfalbel maybe has some insights here?). I will also create a pull request for fixing this issue: the essential problem seems to be that the call of 'tf$reset_default_graph()' in R/training_run.R is not correct for TensorFlow >= 2.0 (not 100% sure from which version exactly). Using 'tf$compat$v1$reset_default_graph()' which is introduced by TensorFlow for compatibility reasons (I guess) seems to clear the issue. Since this does not seem to be the optimal way for TensorFlow >= 2.0 then, there might be a better solution. |
Thanks for taking a look! |
Hi guys, I had the same problem for Rstudio 1.4.1103 (for MacOsX bigSur).
|
Shouldn't that be fixed by now? |
It's fixed in the dev version. Will submit it to CRAN soon. |
Using tfruns with the latest version of tensorflow produces a warning/error for me. Here a minimal example for reproduction:
Created on 2020-07-03 by the reprex package (v0.3.0)
The first error (in
score$loss)
is just a minor bug in the example file; it should bescore["loss"]
instead ofscore$loss
(don't really like to open an issue for this). My problem is the line after that, starting with the warning. While tfruns seems to work nontheless, this warning is shown everytime I use tfruns and I am worried is has some side effects (allthough I am not sure). From reading about this issue in the web, this issue seems very related to keras-team/keras#12379Here some session Infos for the example above (obscured some poths though):
Created on 2020-07-03 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: