tensorflow基于ubuntu下环境搭建

2017-12-10  本文已影响0人  Trancer95

pip install tensorflow

启动终端,输入python 输入以下代码:

>>> import tensorflow as tf

>>> hello = tf.constant('Hello, TensorFlow!')

>>> sess = tf.Session()

>>> print(sess.run(hello))

上一篇 下一篇

猜你喜欢

热点阅读