PracticalDL/Practical-Deep-Learning-Book

ch14 generate_tfRecord.py error

Closed this issue · 3 comments

receiving this error message in ch14 generate_tfRecord.py

File "generate_tfRecord.py", line 20, in
flags = tf.app.flags
AttributeError: module 'tensorflow' has no attribute 'app'

Thank you for pointing this out. Are you on TensorFlow 2.x? Looks like TensorFlow 2.x no longer has the tf.app functionality according to tensorflow/tensorflow#34431

Can you try using code/chapter-6/storing-data-as-tfrecord.ipynb code for conversion which works for TensorFlow 2.x.

I'm closing this issue now, since there has been no activity in the past 2 weeks.