O'Reilly logo
  • Tan Duong thinks this is interesting:

In order to extract the feature maps you want to look at, you’ll create a Keras model that takes batches of images as input, and outputs the activations of all convolution and pooling layers. To do this, you’ll use the Keras class Model. A model is instantiated using two arguments: an input tensor (or list of input tensors) and an output tensor (or list of output tensors). The resulting class is a Keras model, just like the Sequential models you’re familiar with, mapping the specified inputs to the specified outputs. What sets the Model class apart is that it allows for models with multiple outputs, unlike

From

Cover of Deep Learning with Python

Note

Was the layer #4 output the result of passing the images to layer #1 > layer #2 > layer #3 > layer #4?