我是靠谱客的博主 尊敬水杯,这篇文章主要介绍解决报错:AttributeError: module 'tensorflow' has no attribute 'logging',现在分享给大家,希望可以做个参考。

在tensorflow 2.1下跑训练网络,报错:AttributeError: module 'tensorflow' has no attribute 'logging'

这个是因为tensorflow2.1已经没有tf.logging了,解决方法如下:

将tf.logging替换成tf.compat.v1.logging。

问题解决。

最后

以上就是尊敬水杯最近收集整理的关于解决报错:AttributeError: module 'tensorflow' has no attribute 'logging'的全部内容,更多相关解决报错:AttributeError:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(64)

评论列表共有 0 条评论

立即
投稿
返回
顶部