【发布时间】:2020-04-24 10:07:11
【问题描述】:
我想查看keras 模型每一层的输出。到目前为止,我有这样的东西
for layer in model.layers:
print(layer.output)
我得到这样的输出:
Tensor("word_input_6:0", shape=(None, 198), dtype=int32)
Tensor("embedding_6/Identity:0", shape=(None, 198, 100), dtype=float32)
Tensor("lstm/Identity:0", shape=(None, 100), dtype=float32)
Tensor("main_output_8/Identity:0", shape=(None, 6), dtype=float32)
但我想看看张量里面是什么。有什么办法可以看到吗?
【问题讨论】:
标签: tensorflow keras lstm tensorflow2.0