Sortie d'une couche intermédiaire

m2 = Model(inputs=model.input, outputs=model.get_layer('my_dense').output)
Y = m2.predict(X)
Important Ibex