Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get tensorflow 1.7 with colaboratory?

I am getting

AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'LayerRNNCell'

which is a change from tensorflow 1.6 to 1.7 and i have created custom cells based upon 1.7 api but google-colab itself does not seem to be in line with the latest release.

How do i upgrade 1.6.0 version of tensorflow on colaboratory to 1.7.0?

like image 553
Nitin Siwach Avatar asked Dec 06 '25 05:12

Nitin Siwach


1 Answers

Have you tried just using

!pip install --upgrade tensorflow==1.7.0

at the beginning of your notebook?

like image 69
Daniel Lenz Avatar answered Dec 09 '25 06:12

Daniel Lenz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!