title: TypeError: in user code: While using model.fit
body: <pre><code>model = Sequential()
  
  model.add(LSTM(units=50, return_sequences=True, input_shape=(x_train.shape[1], 1)))
  model.add(Dropout(0,2))
  model.add(LSTM(units=50, return_sequences=True))
  model.add(Dropout(0,2))
  model.add(LSTM(units=50))
  model.add(Dropout(0,2))
  model.add(Dense(units=1))
  
  model.compile(optimizer='adam', loss='mean-squared-error')
  model.fit(x_train, y_train, epochs=25, batch_size=32)
  </code></pre>
  <h2>Errors:</h2>
  <pre><code>Epoch 1/25
  ---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-25-fdd9ec7ad6a5&gt; in &lt;module&gt;()
       10 
       11 model.compile(optimizer='adam', loss='mean-squared-error')
  ---&gt; 12 model.fit(x_train, y_train, epochs=25, batch_size=32)
       13 
       14 # Testing the model
  /usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/func_graph.py in autograph_handler(*args, **kwargs)
     1127           except Exception as e:  # pylint:disable=broad-except
     1128             if hasattr(e, &quot;ag_error_metadata&quot;):
  -&gt; 1129               raise e.ag_error_metadata.to_exception(e)
     1130             else:
     1131               raise
  
  TypeError: in user code:
  
      File &quot;/usr/local/lib/python3.7/dist-packages/keras/engine/training.py&quot;, line 878, in train_function  *
          return step_function(self, iterator)
      File &quot;/usr/local/lib/python3.7/dist-packages/keras/engine/training.py&quot;, line 867, in step_function  **
          outputs = model.distribute_strategy.run(run_step, args=(data,))
      File &quot;/usr/local/lib/python3.7/dist-packages/keras/engine/training.py&quot;, line 860, in run_step  **
          outputs = model.train_step(data)
      File &quot;/usr/local/lib/python3.7/dist-packages/keras/engine/training.py&quot;, line 808, in train_step
          y_pred = self(x, training=True)
      File &quot;/usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py&quot;, line 67, in error_handler
          raise e.with_traceback(filtered_tb) from None
      File &quot;/usr/local/lib/python3.7/dist-packages/keras/layers/core/dropout.py&quot;, line 96, in _get_noise_shape
          for i, value in enumerate(self.noise_shape):
  
      TypeError: Exception encountered when calling layer &quot;dropout_18&quot; (type Dropout).
      
      'int' object is not iterable
      
      Call arguments received:
        • inputs=tf.Tensor(shape=(None, 60, 50), dtype=float32)
        • training=True
  </code></pre>