Created
August 4, 2016 04:11
-
-
Save vunb/826c246b46fe0a514a78db37f53f9293 to your computer and use it in GitHub Desktop.
Hướng dẫn / thủ tục cài đặt Tensorflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Personal Requirements | |
# Python 2.7 | |
# Ubuntu/Linux 64-bit | |
# Ubuntu/Linux 64-bit, CPU only, Python 2.7 | |
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl | |
# Python 2 | |
$ sudo pip install --upgrade $TF_BINARY_URL | |
# You can now test your installation. | |
$ python | |
... | |
>>> import tensorflow as tf | |
>>> hello = tf.constant('Hello, TensorFlow!') | |
>>> sess = tf.Session() | |
>>> print(sess.run(hello)) | |
Hello, TensorFlow! | |
>>> a = tf.constant(10) | |
>>> b = tf.constant(32) | |
>>> print(sess.run(a + b)) | |
42 | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment