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

keras.utils.model_to_dot doesn't seem to exist #6

Open
darthdeus opened this issue Jan 30, 2019 · 1 comment
Open

keras.utils.model_to_dot doesn't seem to exist #6

darthdeus opened this issue Jan 30, 2019 · 1 comment

Comments

@darthdeus
Copy link

The first notebook about 20% down has a cell with commented out call to keras.utils.model_to_dot, which doesn't seem to be available in TF 2.0.

Possibly replace with tf.keras.utils.plot_model?

@ageron
Copy link
Owner

ageron commented Jan 31, 2019

Thanks @darthdeus . The Keras API specifies that there should be a keras.utils.model_to_dot() function, but it's only available in tensorflow.python.keras.utils.vis_utils. I submitted a fix, hopefully it will be merged soon. In the meantime, you can access the model_to_dot() function like this:

from tensorflow.python.keras.utils.vis_utils import model_to_dot

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