`keras.utils.model_to_dot` doesn't seem to exist
darthdeus opened this issue · 1 comments
darthdeus commented
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 commented
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