【发布时间】:2020-07-26 14:46:42
【问题描述】:
我想获得我正在研究的 lstm 模型的模型架构。我知道问号表示未指定的批量大小,因此它显示问号,但我希望将其替换为无。你能帮我解决一下如何用 None 替换问号吗,因为我大部分时间都看到 plot_model 显示为 None 的批量大小?下面是我正在使用的代码和我得到的图像。
tf.keras.utils.plot_model(
model,
to_file='model.png',
show_shapes=True,
show_layer_names=True
)
【问题讨论】:
标签: python keras deep-learning jupyter-notebook recurrent-neural-network