title: How to add Dropout in Keras functional model?
body: <p>Let's say I have an LSTM layer in Keras like this:</p>
  
  <pre><code>x = Input(shape=(input_shape), dtype='int32')
  
  x = LSTM(128,return_sequences=True)(x)
  </code></pre>
  
  <p>Now I am trying to add Dropout to this layer using:</p>
  
  <pre><code>X = Dropout(0.5)
  </code></pre>
  
  <p>but this gives error, which I am assuming the above line is redefining X instead of adding Dropout to it. 
  How to fix this?</p>