![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Tensorflow
neronjust
这个作者很懒,什么都没留下…
展开
-
TF1训练时出现 tensorflow.python.framework.errors_impl.InvalidArgumentError: <exception str() failed>
今天用跑TF1的代码时遇到错误:tensorflow.python.framework.errors_impl.InvalidArgumentError: <exception str() failed>从错误信息看不出来哪里出现问题,定位到出错的代码:打断点调试,得到具体的错误信息并改正。...原创 2021-11-11 23:40:48 · 1483 阅读 · 0 评论 -
TF1 RandomShuffleQueue ‘_3_shuffle_batch/random_shuffle_queue‘ is closed and has insufficient ...
今天在跑TF1code的时候遇到这样一个问题:OutOfRangeError (see above for traceback): RandomShuffleQueue '_3_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 1, current size 0) [[Node: shuffle_batch = QueueDequeueManyV2[component_types原创 2021-11-09 11:10:58 · 264 阅读 · 0 评论 -
python2.7 import tensorflow 出现 SyntaxError: invalid syntax 错误
python2.7 import tensorflow 出现 SyntaxError: invalid syntax 错误今天跑一个python2.7+tensorflow1.10的代码的时候,import tensorflow 出现 SyntaxError: invalid syntax 错误。问题原因:https://github.com/protocolbuffers/protobuf 版本问题解决方法pip install protobuf==3.17.3...原创 2021-11-05 01:20:40 · 1198 阅读 · 0 评论 -
tensorflow.keras与keras:TypeError: objectof type 'xxx' has no len()
from tensorflow.keras.layers import Input, Multiply, GlobalAveragePooling1D, Add, Dense, Activation, ZeroPadding1D, \ BatchNormalization, Flatten, Conv1D, AveragePooling1D, MaxPooling1D, GlobalMax...原创 2020-03-12 14:56:05 · 1823 阅读 · 7 评论 -
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory
今天用pip在虚拟python环境下安装tensorflow==1.14.0时,出现错误:Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory试了很多办法都无法解决,最后发现竟然是因为包安装路径path太长导致的,最后把缩短了项目名,并向前移动了文件夹,得以解决。具...原创 2019-11-25 18:31:28 · 389 阅读 · 0 评论 -
解决 “ModuleNotFoundError: No module named 'tensorflow.keras'; 'tensorflow' is not a package”问题
解决 “ModuleNotFoundError: No module named 'tensorflow.keras'; 'tensorflow' is not a package”问题问题描述解决办法问题描述解决办法问题其实很简单,文件名“tensorflow.py”冲突导致,换个文件名就OK了。What a dumb error![1] https://stackoverflow....原创 2019-10-12 11:39:24 · 4142 阅读 · 2 评论