module 'tensorflow' has no attribute 'flags' 解决方案
import tensorflow as tfflags = tf.flags结果报上述的错了,改成flags = tf.app.flags,就报module 'tensorflow' has no attribute 'app'的错,用的是tensorflow 2.0.0版本吗?试试tf.compat.v1.flags...
原创
2020-01-06 23:51:05 ·
18673 阅读 ·
2 评论