Your session crashed for an unknown reason
when I run the following cell in Google Colab:
from keras import backend as K
if
Just a side note: sometimes you may want to reinstall an litle older version of the related module (see from the error log). It works for me in a case.
Google Colab is crashing because you are trying to Run Code related to GPU
with Runtime
as CPU
.
The execution is successful if you change the Runtime as GPU. Steps for the same are mentioned below:
Runtime -> Change Runtime -> GPU (Select from dropdown).
Please find the Working code in Github Gist.