AttributeError:module tensorflow no attribute app,以及module 'tensorflow' has no attribute 'flags'等等
这是因为tensorflow版本的原因,我的tensorflow的版本是2.0.0的,而源代码是tensorflow1.几版本的,所以只需要将源文件里面的

  • import tensorflow ad tf 改为 import tensorflow.compat.v1 as tf
    具体方法:编辑你的文件
    AttributeError:module tensorflow no attribute app,以及module 'tensorflow' has no attribute 'flags'等等
    AttributeError:module tensorflow no attribute app,以及module 'tensorflow' has no attribute 'flags'等等

最后成功
AttributeError:module tensorflow no attribute app,以及module 'tensorflow' has no attribute 'flags'等等

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-01-22
  • 2021-06-17
  • 2022-12-23
  • 2021-07-27
猜你喜欢
  • 2021-09-19
  • 2021-10-20
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案