I want to see the output of each layer of a keras model. So far I have something like this
for layer in model.layers:
print(layer.output)
And I am getting the output like this:
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)
But I want to see what is inside the tensor. Is there any way to see it?