/external/tensorflow/tensorflow/python/platform/ |
gfile.py | 40 @tf_export('gfile.GFile', 'gfile.Open') 41 class GFile(_FileIO): 45 super(GFile, self).__init__(name=name, mode=mode) 48 @tf_export('gfile.FastGFile') 56 # Does not alias to Open so that we use our version of GFile to strip 58 Open = GFile 66 'GFile',
|
benchmark.py | 33 from tensorflow.python.platform import gfile 103 if gfile.Exists(output_path): 105 with gfile.GFile(output_path, "wb") as out:
|
/external/tensorflow/tensorflow/python/tools/ |
strip_unused_lib.py | 29 from tensorflow.python.platform import gfile 95 if not gfile.Exists(input_graph): 105 with gfile.FastGFile(input_graph, mode) as f: 117 with gfile.GFile(output_graph, "wb") as f: 120 with gfile.GFile(output_graph, "w") as f:
|
selective_registration_header_lib.py | 32 from tensorflow.python.platform import gfile 43 file_data = gfile.GFile(proto_file, 'rb').read()
|
print_selective_registration_header_test.py | 27 from tensorflow.python.platform import gfile 82 with gfile.GFile(fname, 'wb') as f:
|
freeze_graph.py | 53 from tensorflow.python.platform import gfile 159 with gfile.GFile(output_graph, "wb") as f: 167 if not gfile.Exists(input_graph): 172 with gfile.FastGFile(input_graph, mode) as f: 182 if not gfile.Exists(input_graph): 187 with gfile.FastGFile(input_graph, mode) as f: 198 if not gfile.Exists(input_saver): 202 with gfile.FastGFile(input_saver, mode) as f:
|
/external/tensorflow/tensorflow/contrib/tensorboard/plugins/projector/ |
projector_api_test.py | 28 from tensorflow.python.platform import gfile 50 with gfile.GFile(os.path.join(temp_dir, 'projector_config.pbtxt')) as f:
|
/external/tensorflow/tensorflow/python/grappler/ |
cost_analyzer_tool.py | 34 from tensorflow.python.platform import gfile 40 with gfile.GFile(FLAGS.metagraphdef) as meta_file: 51 with gfile.GFile(FLAGS.graphdef) as graph_file:
|
/external/tensorflow/tensorflow/tools/test/ |
system_info_lib.py | 37 from tensorflow.python.platform import gfile 83 with gfile.GFile('/proc/self/status', 'rb') as fh: 107 gfile.GFile(f, 'r').readline().rstrip()
|
run_and_gather_logs.py | 33 from tensorflow.python.platform import gfile 95 gfile.GFile(output_path + ".json", "w").write(json_test_results)
|
run_and_gather_logs_lib.py | 29 from tensorflow.python.platform import gfile 92 content = gfile.GFile(f, "rb").read() 128 if gfile.Exists(os.path.join("bazel-bin", test_executable)): 151 if not gfile.Exists(test_executable): 161 log_files = gfile.Glob("{}*".format(test_file_prefix)) 176 gfile.DeleteRecursively(temp_directory)
|
gpu_info_lib.py | 26 from tensorflow.python.platform import gfile 32 for f in gfile.Glob("/proc/driver/nvidia/gpus/*/information"): 35 for line in gfile.GFile(f, "r"))
|
/external/tensorflow/tensorflow/contrib/receptive_field/python/util/examples/ |
compute_rf.py | 32 from tensorflow.python.platform import gfile 48 pbstr = gfile.Open(path).read() 69 f = gfile.GFile('%s' % cmd_args.output_path, 'w')
|
/external/tensorflow/tensorflow/examples/speech_commands/ |
label_wav.py | 48 with tf.gfile.FastGFile(filename, 'rb') as f: 56 return [line.rstrip() for line in tf.gfile.GFile(filename)] 82 if not wav or not tf.gfile.Exists(wav): 85 if not labels or not tf.gfile.Exists(labels): 88 if not graph or not tf.gfile.Exists(graph):
|
label_wav_dir.py | 49 with tf.gfile.FastGFile(filename, 'rb') as f: 57 return [line.rstrip() for line in tf.gfile.GFile(filename)] 69 if not wav_path or not tf.gfile.Exists(wav_path): 91 if not labels or not tf.gfile.Exists(labels): 94 if not graph or not tf.gfile.Exists(graph):
|
train.py | 83 from tensorflow.python.platform import gfile 188 with gfile.GFile(
|
/external/tensorflow/tensorflow/contrib/boosted_trees/examples/ |
boston.py | 82 with tf.gfile.GFile(os.path.join(export_dir, "tree_proto"), "w") as f:
|
/external/tensorflow/tensorflow/examples/label_image/ |
label_image.py | 69 proto_as_ascii_lines = tf.gfile.GFile(label_file).readlines()
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/ |
base.py | 31 from tensorflow.python.platform import gfile 42 with gfile.Open(filename) as csv_file: 61 with gfile.Open(filename) as csv_file: 76 with gfile.Open(filename_small, 'w') as csv_file_small: 78 with gfile.Open(filename) as csv_file: 195 if not gfile.Exists(work_directory): 196 gfile.MakeDirs(work_directory) 198 if not gfile.Exists(filepath): 200 gfile.Copy(temp_file_name, filepath) 201 with gfile.GFile(filepath) as f [all...] |
/external/tensorflow/tensorflow/python/kernel_tests/ |
benchmark_test.py | 28 from tensorflow.python.platform import gfile 122 gfile.MakeDirs(tempdir) 137 self.assertFalse(gfile.Exists(expected_output_file)) 143 self.assertFalse(gfile.Exists(expected_output_file)) 154 self.assertTrue(gfile.Exists(expected_output_file)) 155 self.assertTrue(gfile.Exists(expected_output_file_2)) 156 self.assertTrue(gfile.Exists(expected_output_file_3)) 174 s = gfile.GFile(f, "rb").read() 200 gfile.DeleteRecursively(tempdir [all...] |
/external/tensorflow/tensorflow/contrib/boosted_trees/estimator_batch/ |
custom_export_strategy.py | 32 from tensorflow.python.platform import gfile 91 gfile.MakeDirs(assets_dir) 92 with gfile.GFile(os.path.join(assets_dir, "feature_importances"),
|
/external/tensorflow/tensorflow/contrib/session_bundle/ |
exporter_test.py | 38 from tensorflow.python.platform import gfile 48 gfile.DeleteRecursively(test.get_temp_dir()) 91 with gfile.FastGFile(asset_filepath_orig, "w") as f: 96 with gfile.FastGFile(ignored_asset, "w") as f: 185 asset_contents = gfile.GFile(assets_path).read() 193 self.assertFalse(gfile.Exists(ignored_asset_path)) 232 self.assertEquals(gfile.ListDirectory(export_path), ["00000100"]) 235 sorted(gfile.ListDirectory(export_path)), ["00000100", "00000101"]) 238 sorted(gfile.ListDirectory(export_path)), ["00000101", "00000102"] [all...] |
/external/tensorflow/tensorflow/contrib/text/python/ops/ |
skip_gram_ops.py | 31 from tensorflow.python.platform import gfile 334 with gfile.GFile(vocab_freq_file, mode="r") as f:
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
estimator_test.py | 62 from tensorflow.python.platform import gfile 217 vocab_file = gfile.GFile(vocab_file_name, mode='w') [all...] |
/external/tensorflow/tensorflow/python/estimator/ |
estimator_test.py | 58 from tensorflow.python.platform import gfile [all...] |