>>> print('Default GPU Device: {}'.format(tf.test.gpu_device_name()))
2020-06-06 10:14:08.927485: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-06-06 10:14:08.950893: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2793605000 Hz
2020-06-06 10:14:08.951424: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x562e7913f720 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-06-06 10:14:08.951449: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2020-06-06 10:14:08.953797: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-06-06 10:14:09.223937: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-06-06 10:14:09.224406: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x562e792142e0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-06-06 10:14:09.224427: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): GeForce GTX 950M, Compute Capability 5.0
2020-06-06 10:14:09.224580: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-06-06 10:14:09.224939: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1555] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 950M computeCapability: 5.0
coreClock: 1.124GHz coreCount: 5 deviceMemorySize: 3.95GiB deviceMemoryBandwidth: 26.82GiB/s
2020-06-06 10:14:09.225192: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-06-06 10:14:09.227247: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-06-06 10:14:09.228516: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10
2020-06-06 10:14:09.228872: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10
2020-06-06 10:14:09.230221: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10
2020-06-06 10:14:09.231062: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10
2020-06-06 10:14:09.233700: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-06-06 10:14:09.233878: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-06-06 10:14:09.234374: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-06-06 10:14:09.234811: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1697] Adding visible gpu devices: 0
2020-06-06 10:14:09.263649: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-06-06 10:14:09.286790: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1096] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-06-06 10:14:09.287059: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102]      0
2020-06-06 10:14:09.287107: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] 0:   N
2020-06-06 10:14:09.303423: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-06-06 10:14:09.303947: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-06-06 10:14:09.304356: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1241] Created TensorFlow device (/device:GPU:0 with 3708 MB memory) -> physical GPU (device: 0, name: GeForce GTX 950M, pci bus id: 0000:01:00.0, compute capability: 5.0)
Default GPU Device: /device:GPU:0

解决办法:

在代码中添加一下两行

import os

os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

最新文章

  1. 界面通信之block传值
  2. js中查找一个字符是否存在。
  3. MySQL 5.7 reference about JSON
  4. kettle作业(job)调用转换,设置变量,写日志到数据库中【转】
  5. 关于Qt5 UI设计的一些小知识
  6. 常用的用户状态命令包括:whoami、id、groups、newgrp 等
  7. .NET基础拾遗(3)字符串、集合和流3
  8. 三种方式上传文件-Java
  9. (转)Java Socket编程
  10. 详解css3弹性盒模型(Flexbox)
  11. 十二个 ASP.NET Core 例子——IOC
  12. mysql查看表大小
  13. js实现短暂提示框
  14. springMVC源码分析--AbstractDetectingUrlHandlerMapping(五)
  15. PostgreSql的Explain命令详解
  16. mysql 获取昨天数据 utc时间
  17. QoS技术总结
  18. LeetCode 29 - 两数相除 - [位运算]
  19. Oracle EM错误,java.lang.Exception: Exception in sending Request :: null 分类: Oracle 2015-07-08 21:24 44人阅读 评论(0) 收藏
  20. Codeforces735B Urbanization 2016-12-13 11:58 114人阅读 评论(0) 收藏

热门文章

  1. P3660 [USACO17FEB]Why Did the Cow Cross the Road III G
  2. Zookeeper基础理论
  3. ASP。NET Core Blazor CRUD使用实体框架和Web API
  4. day64:nginx模块之限制连接&状态监控&Location/用nginx+php跑项目/扩展应用节点
  5. 初探电波钟(A Brief Introduction Of Radio Controlled Clock AND Its Appliciations)
  6. mycat 单库分表实践
  7. Dubbo的负载均衡策略&容错策略
  8. 实验三 HTML表格和表单的制作
  9. 【转载】opencvVS2019配置方法
  10. 每天一个linux命令:ps命令