tf2_course
tf2_course copied to clipboard
`keras.utils.model_to_dot` doesn't seem to exist
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?
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