tensorflow.python.platform.gfile

tensorflow.python.platform.gfile.GFile

例子:

    with tf.gfile.GFile(target_path, mode="r") as target_file:
        target = target_file.readline()

tensorflow.python.platform.gfile.Exists

例子:

    if not gfile.Exists(vocabulary_path):
        print("Creating vocabulary %s from data %s" % (vocabulary_path, ",".join(data_paths)))
        vocab = {}


你可能感兴趣的:(TensorFlow)