简体   繁体   English

tf.session()需要很长时间

[英]tf.session() takes very long time

I am using AWS EC2 with 16 GPU Tesla. 我正在将AWS EC2与16 GPU Tesla一起使用。 When I finished installing tensorflow and was tyring to see if it works it stopped. 当我完成tensorflow的安装并尝试查看其是否工作时,它停止了。

import tensorflow as tf

this works. 这可行。

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

this works 这有效

sess = tf.Session()

This gives an error 这给出了一个错误

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)

These two logs are just pieces of information. 这两个日志只是一些信息。 If you want to, you can disable them as provided in this great answer: https://github.com/tensorflow/tensorflow/issues/7778#issuecomment-281678077 如果您愿意,可以按照以下出色答案中的说明禁用它们: https : //github.com/tensorflow/tensorflow/issues/7778#issuecomment-281678077

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM