tensorflow预测涨停热门股票

chenologin2分享 时间:

1. tensorflow cpu gpu 哪个好

pciBusID 0000:01:00.0

Total memory: 4.00GiB

Free memory: 3.62GiB

I tensorflow/core/common_runtime/gpu/gpu_init.cc:126] DMA: 0

I tensorflow/core/common_runtime/gpu/gpu_init.cc:136] 0: Y

I tensorflow/core/common_runtime/gpu/gpu_device.cc:838] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 970, pci bus id: 0000:01:00.0)

[[ 12.]]

2. 如何测试tensorflow配置成功

如何测试tensorflow配置成功安装步骤:1、sudo apt-get install python-pip python-dev python-virtualenv2、virtualenv --system-site-packages ~/tensorflow3、cd ~/tensorflow4、source bin/activate # If using bash5、(tensorflow)$ pip install --upgrade tensorflow-0.5.0-cp27-none-linux_x86_64.whl测试:1、打开终端输入cd tensorflow2、source bin/activate3、python4、输入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>>>5、测试成功接下来首先退出python 按快捷键Ctrl+D6、再退出tensorflow 在命令行输入命令:deactivate。

155885