title: Keras: How to get layer shapes in a Sequential model
body: <p>I would like to access the layer size of all the layers in a <code>Sequential</code> Keras model. My code:</p>
  
  <pre><code>model = Sequential()
  model.add(Conv2D(filters=32, 
                 kernel_size=(3,3), 
                 input_shape=(64,64,3)
          ))
  model.add(MaxPooling2D(pool_size=(3,3), strides=(2,2)))
  </code></pre>
  
  <p>Then I would like some code like the following to work</p>
  
  <pre><code>for layer in model.layers:
      print(layer.get_shape())
  </code></pre>
  
  <p>.. but it doesn't. I get the error: <code>AttributeError: 'Conv2D' object has no attribute 'get_shape'</code></p>