title: getting 'list object not callable" in keras Sequential Model
body: <p>I am trying to build a sequential model as follows, but on running, it is showing list object not callable on tf.keras.layers.Dense(26, activation='softmax')</p>
  <pre><code>    model = tf.keras.models.Sequential([
  tf.keras.layers.Conv2D(64,(3, 3), activation='relu', input_shape=(28, 28, 1)),
  tf.keras.layers.MaxPooling2D(2, 2),
  tf.keras.layers.Conv2D(64,(3, 3), activation='relu'),
  tf.keras.layers.MaxPooling2D(2, 2),
  tf.keras.layers.Flatten(),
  tf.keras.layers.Dense(128, activation='relu'),
  tf.keras.layers.Dense(26, activation='softmax')
  ])
  
  model.compile(optimizer = tf.train.AdamOptimizer(),
            loss = 'sparse_categorical_crossentropy',
            metrics=['accuracy'])
  
  
  history = model.fit_generator(train_datagen.flow(training_images,  training_labels, batch_size=32),
                            steps_per_epoch=len(training_images) / 32,
                            epochs=15,
  validation_data=validation_datagen.flow(testing_images, testing_labels, batch_size=32),
                            validation_steps=len(testing_images) / 32)
  
  model.evaluate(testing_images, testing_labels)
  </code></pre>
  <p>The error which I am grtting on running the call is :</p>
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-22-a8af9687e7f3&gt; in &lt;module&gt;
        6     tf.keras.layers.Flatten(),
        7     tf.keras.layers.Dense(128, activation='relu'),
  ----&gt; 8     tf.keras.layers.Dense(26, activation='softmax')
        9 ])
       10 
  
  
  
  TypeError: 'list' object is not callable
  </code></pre>
  <p>I couldn't find any error , Thanks in advance</p>