title: How to use Model.fit which supports generators (after fit_generator deprecation)
body: <p>I have got this deprecation warning while using <code>Model.fit_generator</code> in tensorflow:</p>
  
  <pre><code>WARNING:tensorflow: Model.fit_generator (from tensorflow.python.keras.engine.training) is deprecated and will be removed in a future version.
  Instructions for updating:
  Please use Model.fit, which supports generators.
  </code></pre>
  
  <p>How can I use <code>Model.fit</code> instead of <code>Model.fit_generator</code>?</p>