Answers for "import tensorflow version 1"

1

colab tensorflow version change

%tensorflow_version 1.x

import tensorflow
print(tensorflow.__version__)
Posted by: Guest on November-18-2020
3

tf 1 compatible colab

Specifying the TensorFlow version
Running 

import tensorflow 

will import the default version (currently 2.x). You can use 1.x 
by running a cell with the 

%tensorflow_version 1.x

magic before you run import tensorflow.
Posted by: Guest on April-26-2020
0

tensorflow_version

python -c 'import tensorflow as tf; print(tf.__version__)'  # for Python 2
python3 -c 'import tensorflow as tf; print(tf.__version__)'  # for Python 3
Posted by: Guest on December-31-2020

Python Answers by Framework

Browse Popular Code Answers by Language