I've build a tensorflow model in Python to make image recognition but i would like to better understand how works my model. I would like to print values between each layers of my model.
I'm using TensorFlow 1.13.1 and Python 3.6.8.
# model with 2 hidden layers
print("Creating model and adding layers...")
model = tf.keras.models.Sequential()
model.add(tf.keras.layers.Dense(256, activation='relu'))
model.add(tf.keras.layers.Dense(128, activation='relu')) # would like to know values before this layer
model.add(tf.keras.layers.Dense(2, activation='softmax'))
Thanks in advance,