AttributeError: module 'tensorflow' has no attribute 'GraphDef'
ZahidFaiz opened this issue · comments
Zahid Faiz commented
The syntax has changed in V2 of tf.
Here's the correct piece:
tf.compat.v1.GraphDef() # -> instead of tf.GraphDef()
tf.compat.v2.io.gfile.GFile() # -> instead of tf.gfile.GFile()
Daniel commented
PR #44 would fix this, it's just waiting on a merge from @nikitakit apparently.
Mohd Sanad Zaki Rizvi commented
Hi @nikitakit,
Is this issue fixed?
Ricky Nave commented
I'm facing the same issue. Is there any chance this will be fixed soon?
Qi Zeng commented
I'm facing the same issue. Is there any chance this will be fixed soon?