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