第三方库Tensorflow编写程序正常运行,出现warning的问题

第三方库Tensorflow编写程序正常运行,出现warning的问题,第1张

陶涛

学号:19131213373

【嵌牛导读】tensor flow是用来实现mnist手写数字识别的一个库,但是运行时也会存在各种问题在这里,为大家分享一下自己在学习过程中遇到的问题以及解决办法

【嵌牛鼻子】python,tensor flow, warning

【嵌牛正文】

tensor flow是用来实现mnist手写数字识别的一个库,但是运行时也会存在各种问题,在这里,为大家分享一下自己在学习过程中遇到的问题以及解决办法。

跑tensorflow时报下面的warning:

2019-11-22 11:00:31.504004: W tensorflow/core/platform/cpu_feature_guard.cc:45]The TensorFlow library wasn't compiled to use SSE4.2 instructions,but these are available on your machine and could speed up CPU computations.

2019-11-22 11:00:31.504312: W tensorflow/core/platform/cpu_feature_guard.cc:45]The TensorFlow library wasn't compiled to use AVX instructions,but these are available on your machine and could speed up CPU computations.

2019-11-22 11:00:31.504325: W tensorflow/core/platform/cpu_feature_guard.cc:45]The TensorFlow library wasn't compiled to use AVX2 instructions,but these are available on your machine and could speed up CPU computations.

2019-11-22 11:00:31.504335: W tensorflow/core/platform/cpu_feature_guard.cc:45]The TensorFlow library wasn't compiled to use FMA instructions,but these are available on your machine and could speed up CPU computations.

解决办法:

在Mac电脑上面编译GPU版本TensorFlow的方法

基本使用

使用 TensorFlow, 你必须明白 TensorFlow:

使用图 (graph) 来表示计算任务.

在被称之为 会话 (Session) 的上下文 (context) 中执行图.

使用 tensor 表示数据.

通过 变量 (Variable) 维护状态.

使用 feed 和 fetch 可以为任意的 *** 作(arbitrary operation) 赋值或者从其中获取数据.


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/11414851.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-15
下一篇 2023-05-15

发表评论

登录后才能评论

评论列表(0条)

保存