tf2_course icon indicating copy to clipboard operation
tf2_course copied to clipboard

`keras.utils.model_to_dot` doesn't seem to exist

Open darthdeus opened this issue 6 years ago • 1 comments

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?

darthdeus avatar Jan 30 '19 21:01 darthdeus

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

ageron avatar Jan 31 '19 12:01 ageron