您好,欢迎来到步遥情感网。
搜索
您的当前位置:首页tensorflow:Entity <bound method Dense AssertionError: Bad argument number for Name: 3, expecting 4

tensorflow:Entity <bound method Dense AssertionError: Bad argument number for Name: 3, expecting 4

来源:步遥情感网

1.问题 现场:

使用 的TensorFlow1 来训练模型:

WARNING:tensorflow:Entity <bound method Dense.call of <tensorflow.python.layers.core.Dense object at 0x7f320847ff90>> 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 Dense.call of <tensorflow.python.layers.core.Dense object at 0x7f320847ff90>>: AssertionError: Bad argument number for Name: 3, expecting 4

2. 解决方案

不知道对模型有什么影响,上网查查怎么解决这个warning。

后来发现是有个gast的库版本太高,导致不兼容的问题,降级gast即可解决

使用pip进行降级 :pip install --user gast==0.2.2

参考:

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- obuygou.com 版权所有 赣ICP备2024042798号-5

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务