title: Keras on Google Colaboratory: Incomplete iterations?
body: <p>I'm running keras addition <a href="https://github.com/keras-team/keras/blob/master/examples/addition_rnn.py" rel="nofollow noreferrer">rnn (seq2seq) example - here</a>. I've tried running this on  1. Jupyter on  ubuntu VM, and also on Google colaboratory notebook with GPU.
  But I'm afraid on Google Colab, it's not completing all the iterations. To be more specific, </p>
  
  <p>Below are logs from regular jupyter notebook:</p>
  
   
  
  <pre class="lang-python prettyprint-override"><code>Iteration 1
  Train on 45000 samples, validate on 5000 samples
  Epoch 1/1
  45000/45000 [==============================] - 75s 2ms/step - loss: 1.8899 - acc: 0.3209 - val_loss: 1.7819 - val_acc: 0.3429
  </code></pre>
  
  <p>Below are logs from Google colaboratory notebook.</p>
  
  <pre class="lang-python prettyprint-override"><code>Iteration 1
  Train on 45000 samples, validate on 5000 samples
  Epoch 1/1
  17536/45000 [==========&gt;...................] - ETA: 10s - loss: 2.0067 - acc: 0.2934
  </code></pre>
  
  <p>Note that after this incomplete iteration, it will not stop, instead it will move to next iteration. Below are Logs from next iteration on colab notebook - </p>
  
  <pre class="lang-python prettyprint-override"><code>Iteration 2
  Train on 45000 samples, validate on 5000 samples
  Epoch 1/1
  34688/45000 [======================&gt;.......] - ETA: 2s - loss: 1.7466 - acc: 0.3562
  </code></pre>
  
  <p>Note that I'm using the same code on both of these environments. I do not understand what is happening here. Why iterations are not completed on Google colab notebook? Is it something related to GPUs on Google colab? How do I fix this? Any pointers will be appreciated. Thank you!</p>