tf.session()需要很长时间

时间:2018-01-30 06:49:07

标签: tensorflow amazon-ec2

我正在使用具有16 GPU特斯拉的AWS EC2。 当我完成了tensorflow的安装并且正在试图查看它是否正常工作时它就停止了。

import tensorflow as tf

这有效。

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

这是有效的

sess = tf.Session()

这会产生错误

2018-01-30 06:48:00.543428: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:892] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-01-30 06:48:00.545858: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties: 
name: Tesla K80 major: 3 minor: 7 memoryClockRate(GHz): 0.8235
pciBusID: 0000:00:0f.0
totalMemory: 11.17GiB freeMemory: 11.03GiB
Segmentation fault (core dumped)

1 个答案:

答案 0 :(得分:0)

这两个日志只是一些信息。如果您愿意,可以按照以下优秀答案中的说明禁用它们:https://github.com/tensorflow/tensorflow/issues/7778#issuecomment-281678077