问题:with tf.gfile.Open(temp_file, 'r') as temp_eval_file:
AttributeError: module 'tensorflow' has no attribute 'gfile'
解决:tf.compat.v1代替tf
问题:with tf.gfile.Open(temp_file, 'r') as temp_eval_file:
AttributeError: module 'tensorflow' has no attribute 'gfile'
解决:tf.compat.v1代替tf