我正在执行此小代码以在iPython终端中测试TensorFlow。
In [1]: import tensorflow as tf
In [2]: a = tf.placeholder(tf.float32)
In [3]: b = tf.placeholder(tf.float32)
In [4]: add = tf.add(a,b)
In [5]: sess = tf.Session()
2019-01-12 19:57:41.028987: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2019-01-12 19:57:41.345326: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:964] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-01-12 19:57:41.346148: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with properties:
name: GeForce GTX 750 Ti major: 5 minor: 0 memoryClockRate(GHz): 1.0845
pciBusID: 0000:01:00.0
totalMemory: 1.95GiB freeMemory: 1.23GiB
2019-01-12 19:57:41.346166: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
A2019-01-12 20:00:20.784255: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-01-12 20:00:20.784278: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988] 0
2019-01-12 20:00:20.784283: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0: N
2019-01-12 20:00:20.784470: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 975 MB memory) -> physical GPU (device: 0, name: GeForce GTX 750 Ti, pci bus id: 0000:01:00.0, compute capability: 5.0)
我以这种方式安装TensorFlow:
conda create -n tensorflow_gpuenv tensorflow-gpu
conda activate tensorflow_gpuenv
这是第一次使用GPU和tensorflow。以上消息正常吗?我正在使用Ubuntu桌面(Kubuntu)。我没有安装其他GPU,并且我的台式机可能装有GPU。
基于此消息,此GPU是否可以与TensorFlow一起使用?