My model is defined as such:
model = keras.models.Sequential()
model.add(layers.Embedding(max_features, 128, input_length=max_len,
input_shape=(max_len,), name='embed'))
model.add(layers.Conv1D(32, 7, activation='relu'))
model.add(layers.MaxPooling1D(5))
model.add(layers.Conv1D(32, 7, activation='relu'))
model.add(layers.GlobalMaxPooling1D())
model.add(layers.Dense(1))
and when I use the plot_model function to draw it out:
from keras.utils import plot_model
plot_model(model, show_shapes=True, to_file='model.png')
The drawing I get is
Where the input layer is a series of numbers. Does anybody know how it let it show the input properly?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…