TreeviewCopyright © Pengfei Ni all right reserved, powered by aleen42

Tensorflow CPU版本安装

pip安装

最简单的方法使用pip来安装

# Python 2.7
pip install --upgrade tensorflow
# Python 3.x
pip3 install --upgrade tensorflow

docker

使用镜像gcr.io/tensorflow/tensorflow启动CPU版Tensorflow:

docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow

验证安装

$ python
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
Hello, TensorFlow!
>>>

results matching ""

    No results matching ""