概述
Github下载的Tensorflow代码报错
WARNING:tensorflow:Entity <bound method SeparableConv2D.call of <tensorflow.python.layers.convolutional.SeparableConv2D object at 0x0000011F446E9668>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10
) and attach the full output. Cause: converting <bound method SeparableConv2D.call of <tensorflow.python.layers.convolutional.SeparableConv2D object at 0x0000011F446E9668>>: AssertionError: Bad argument number for Name: 3, expecting 4
解决办法:
可以卸载掉高版本的gast
再pip install gast==0.2.2
用的是tensorflow1.14版本,这版本感觉有问题,替换成1.13后,问题完美解决:
pip install tensorflow-gpu==1.13.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
最后
以上就是暴躁钥匙为你收集整理的Tensorflow代码报错:call of的全部内容,希望文章能够帮你解决Tensorflow代码报错:call of所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复