-1
import tensorflow as tf
flags = tf.app.flags

AttributeError: module 'tensorflow' has no attribute 'app'

  • Does this answer your question? [AttributeError: module 'tensorflow' has no attribute 'app'](https://stackoverflow.com/questions/58258003/attributeerror-module-tensorflow-has-no-attribute-app) – hanugm Jul 25 '21 at 03:51

1 Answers1

0

Try to use: import tensorflow.compat.v1 as tf

Arpit Jain
  • 1,217
  • 8
  • 27