Farshid PirahanSiah
Farshid PirahanSiah

Reputation: 821

TensorFlow 2 not show the version in colab google and windows 10

I install the TensorFlow version 2 in google colab:

!wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64 -O cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb !dpkg -i cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb !apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub !apt-get update !apt-get install cuda !pip install tf-nightly-gpu-2.0-preview

but when I try to find the version it shows

1.13.0-dev20190116

also I have error when I want to use the tf.enable_eager_execution() and NameError: name 'layers' is not defined

Upvotes: 1

Views: 1674

Answers (1)

prosti
prosti

Reputation: 46409

Try like this:

!pip install tf-nightly-2.0-preview
import tensorflow as tf

As explained by Luca to check the version you need:

print(tf.__version__)

Upvotes: 1

Related Questions