成功解决AttributeError: module 'tensorflow' has no attribute 'get_variable'
目录
解决问题
解决思路
解决方法
解决问题AttributeError: module 'tensorflow' has no attribute 'get_variable'
解决思路属性错误:模块tensorflow没有属性get_variable
解决方法版本升级导致该方法被弃用,可以选择修改方法,或着调用旧版本的函数去解决!
将
tf.get_variable
改为
tf.compat.v1.get_variable