Answers for "AttributeError: module 'tensorflow' has no attribute 'get_default_graph' tensorflow 2.6.0"

0

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

tf.compat.v1.GraphDef()   # -> instead of tf.GraphDef()
tf.compat.v2.io.gfile.GFile()   # -> instead of tf.gfile.GFile()
Posted by: Guest on December-25-2020

Code answers related to "AttributeError: module 'tensorflow' has no attribute 'get_default_graph' tensorflow 2.6.0"

Python Answers by Framework

Browse Popular Code Answers by Language