TensorFlow 学习问题汇总

这篇博客总结了TensorFlow学习中遇到的警告和错误,包括`initialize_all_variables`的弃用警告以及`TypeError: run() missing 1 required positional argument: 'fetches'`的问题。作者建议将弃用的`initialize_all_variables`替换为`tf.global_variables_initializer`,并提供了在Anaconda环境下安装bazel解决TensorFlow缺失模块的方法。此外,还指出在使用`tf.Session`时需要注意调用方式。
摘要由CSDN通过智能技术生成

1.

WARNING:tensorflow:From F:\anaconda\envs\Tensorflow\lib\site-packages\tensorflow\python\util\tf_should_use.py:170: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.global_variables_initializer` instead.

2.

2019-01-20 17:06:19.829200: W c:\l\tensorflow_1501907206084\work\tensorflow-1.2.1\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.
2019-01-20 17:06:19.830002: W c:\l\tensorflow_1501907206084\work\tensorflow-1.2.1\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE2 instructions, but these are available on your machine and could speed up CPU computations.
2019-01-20 17:06:19.830701: W c:\l\tensorflow_1501
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值