Я получаю ошибку при построении моей модели. Мой код
from keras.utils import plot_model plot_model(model, to_file='model.png')
Отображение ошибки
1 кадров /usr/local/lib/python3.6/dist-packages/keras/utils/vis_utils.py в model_to_dot (model, show_shapes, show_layer_names, rankdir, expand_nested, dpi, subgraph) 167 node_key = layer.name + '_ib-' + str (i) 168, если node_key в model._network_nodes: -> 169 для входящего_layer в node.inbound_layers : 170 inbound_layer_id = str (id (inbound_layer)) 171, если не расширен: *
Я только что решил,
Произошла ошибка при импорте вместо
from tensorflow.keras.utils import plot_model
Я импортировал
from keras.utils import plot_model
В моей модели использовался тензор потока 2.0 так что решено.