Tensorflow: L'objet 'Model' n'a pas d'attribut 'container_nodes'

Créé le 14 nov. 2017  ·  1Commentaire  ·  Source: tensorflow/tensorflow

Problème

model = tf.keras.models.Model()
model.add(...)
tf.keras.utils.plot_model(model, to_file="model.png")

Production:

Traceback (most recent call last):
  File "model.py", line 36, in <module>
    K.utils.plot_model(model, to_file="model.png")
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/_impl/keras/utils/vis_utils.py", line 148, in plot_model
    dot = model_to_dot(model, show_shapes, show_layer_names, rankdir)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/_impl/keras/utils/vis_utils.py", line 123, in model_to_dot
    if node_key in model.container_nodes:
AttributeError: 'Model' object has no attribute 'container_nodes'

Environnement

-Système: Ubuntu 16.04
-Tensorflow-gpu bin v1.4.0-rc1-11-g130a514 1.4.0

awaiting tensorflower bug

Commentaire le plus utile

model_to_dot() ne fonctionne pas depuis le commit 3599fd4. Un correctif mineur semble fonctionner.

>Tous les commentaires

model_to_dot() ne fonctionne pas depuis le commit 3599fd4. Un correctif mineur semble fonctionner.

Cette page vous a été utile?
0 / 5 - 0 notes