Tensorflow代碼報錯:call of

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章