AttributeError: module 'tensorflow' has no attribute 'app'
andiconda opened this issue ยท 3 comments
andiconda commented
Thanks for your interest in our research!
If you have problems running our code, please include
- Ubuntu18
- Tensorflow 2.0.0
- python 3.5
- The stack trace of the error that you see
I meet the problem:
Traceback (most recent call last):
File "src/predict_3dpose.py", line 27, in
tf.app.flags.DEFINE_float("learning_rate", 1e-3, "Learning rate")
AttributeError: module 'tensorflow' has no attribute 'app'
ArashHosseini commented
Hi @andiconda, use this instead
tf.compat.v1.app.run(
main=None,
argv=None
)
let it me know if its not working
jieluyan commented
I have the same question, but what do you mean? @ArashHosseini , shall we add: tf.compat.v1.app.run(
main=None,
argv=None
)
to the front of the error line "tf.app.flags.DEFINE_float("learning_rate", 1e-3, "Learning rate")"?
ArashHosseini commented