tensorflow has not object gfile code example Example: AttributeError: module 'tensorflow' has no attribute 'gfile' import tensorflow.compat.v1 as tf