AttributeError: module ‘tensorflow‘ has no attribute ‘ConfigProto‘

在运行ARCNN的代码的时候,报错module ‘tensorflow‘ has no attribute ‘ConfigProto‘
将dataset.py中:

config = tf.ConfigProto()  

修改为:

config = tf.compat.v1.ConfigProto()   

猜你喜欢

转载自blog.csdn.net/demo_jie/article/details/107579720