HomeSort by relevance Sort by last modified time
    Searched refs:gfile (Results 1 - 25 of 117) sorted by null

1 2 3 4 5

  /external/tensorflow/tensorflow/contrib/ignite/python/tests/
igfs_test.py 21 from tensorflow.python.platform import gfile
43 self.assertFalse(gfile.Exists(file_name))
45 with gfile.Open(file_name, mode="w") as w:
48 self.assertTrue(gfile.Exists(file_name))
57 self.assertFalse(gfile.Exists(file_name))
59 with gfile.Open(file_name, mode="w") as w:
63 with gfile.Open(file_name, mode="r") as r:
77 self.assertFalse(gfile.Exists(dir_name))
78 self.assertFalse(gfile.Exists(file_name))
79 gfile.MkDir(dir_name
    [all...]
  /external/tensorflow/tensorflow/python/debug/wrappers/
dumping_wrapper.py 28 from tensorflow.python.platform import gfile
77 if gfile.Exists(session_root):
78 if not gfile.IsDirectory(session_root):
81 elif gfile.ListDirectory(session_root):
86 gfile.MakeDirs(session_root)
115 gfile.MkDir(run_dir)
122 with gfile.Open(os.path.join(fetches_path), "wb") as f:
132 with gfile.Open(os.path.join(feed_keys_path), "wb") as f:
  /external/tensorflow/tensorflow/python/eager/
profiler_test.py 28 from tensorflow.python.platform import gfile
55 file_list = gfile.ListDirectory(logdir)
57 for file_name in gfile.ListDirectory(logdir):
58 if gfile.IsDirectory(os.path.join(logdir, file_name)):
  /external/tensorflow/tensorflow/examples/speech_commands/
label_wav.py 48 with tf.gfile.GFile(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):
train_test.py 28 from tensorflow.python.platform import gfile
111 gfile.Exists(
115 gfile.Exists(
119 gfile.Exists(
130 gfile.Exists(
134 gfile.Exists(
138 gfile.Exists(
label_wav_dir.py 49 with tf.gfile.GFile(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):
  /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.GFile(input_graph, mode) as f:
117 with gfile.GFile(output_graph, "wb") as f:
120 with gfile.GFile(output_graph, "w") as f:
optimize_for_inference.py 68 from tensorflow.python.platform import gfile
75 if not gfile.Exists(FLAGS.input):
80 with gfile.Open(FLAGS.input, "rb") as f:
95 f = gfile.GFile(FLAGS.output, "w")
  /external/tensorflow/tensorflow/python/profiler/
profile_context_test.py 26 from tensorflow.python.platform import gfile
58 self.assertTrue(gfile.Exists(outfile))
59 gfile.Remove(outfile)
61 self.assertTrue(gfile.Exists(profile_step100))
62 with gfile.Open(outfile, "r") as f:
64 gfile.Remove(outfile)
71 with gfile.Open(outfile, "r") as f:
84 for f in gfile.ListDirectory(test.get_temp_dir()):
89 gfile.Exists(os.path.join(test.get_temp_dir(), "run_meta_11")))
90 gfile.Remove(os.path.join(test.get_temp_dir(), "run_meta_11")
    [all...]
profiler_test.py 26 from tensorflow.python.platform import gfile
64 with gfile.Open(outfile, 'r') as f:
69 with gfile.Open(outfile, 'r') as f:
74 with gfile.Open(outfile, 'r') as f:
79 with gfile.Open(outfile, 'r') as f:
84 with gfile.Open(outfile, 'r') as f:
89 with gfile.Open(outfile, 'r') as f:
94 with gfile.Open(outfile, 'r') as f:
99 with gfile.Open(outfile, 'r') as f:
105 with gfile.Open(outfile, 'r') as f
    [all...]
  /external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/
base.py 37 from tensorflow.python.platform import gfile
51 with gfile.Open(filename) as csv_file:
71 with gfile.Open(filename) as csv_file:
87 with gfile.Open(filename_small, 'w') as csv_file_small:
89 with gfile.Open(filename) as csv_file:
248 if not gfile.Exists(work_directory):
249 gfile.MakeDirs(work_directory)
251 if not gfile.Exists(filepath):
253 gfile.Copy(temp_file_name, filepath)
254 with gfile.GFile(filepath) as f
    [all...]
text_datasets.py 33 from tensorflow.python.platform import gfile
44 if not (gfile.Exists(train_path) and gfile.Exists(test_path)):
  /external/tensorflow/tensorflow/lite/tutorials/
dataset.py 43 with tf.gfile.Open(filename, 'rb') as f:
59 with tf.gfile.Open(filename, 'rb') as f:
70 if tf.gfile.Exists(filepath):
72 if not tf.gfile.Exists(directory):
73 tf.gfile.MakeDirs(directory)
80 tf.gfile.Open(filepath, 'wb') as f_out:
  /external/tensorflow/tensorflow/tools/test/
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)
  /external/tensorflow/tensorflow/lite/python/
create_custom_op.py 45 from tensorflow.python.platform import gfile
61 if not gfile.Exists(filename):
65 with gfile.GFile(filename, "rb") as f:
74 with gfile.Open(filename, "wb") as f:
  /external/tensorflow/tensorflow/python/kernel_tests/
benchmark_test.py 32 from tensorflow.python.platform import gfile
133 gfile.MakeDirs(tempdir)
148 self.assertFalse(gfile.Exists(expected_output_file))
154 self.assertFalse(gfile.Exists(expected_output_file))
165 self.assertTrue(gfile.Exists(expected_output_file))
166 self.assertTrue(gfile.Exists(expected_output_file_2))
167 self.assertTrue(gfile.Exists(expected_output_file_3))
185 s = gfile.GFile(f, "rb").read()
215 gfile.DeleteRecursively(tempdir
    [all...]
  /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/contrib/session_bundle/
exporter.py 36 from tensorflow.python.platform import gfile
47 """Callback to copy files using `gfile.Copy` to an export directory.
60 gfile.MakeDirs(export_dir_path)
66 if gfile.Exists(new_path):
71 gfile.Remove(new_path)
72 gfile.Copy(source_filepath, new_path)
275 if gfile.Exists(export_dir):
282 gfile.MakeDirs(tmp_export_dir)
296 gfile.MakeDirs(assets_dir)
300 gfile.Rename(tmp_export_dir, export_dir
    [all...]
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/receptive_field/python/util/examples/
compute_rf.py 29 from tensorflow.python.platform import gfile
45 pbstr = gfile.Open(path).read()
66 f = gfile.GFile('%s' % cmd_args.output_path, 'w')
  /external/tensorflow/tensorflow/contrib/summary/
summary_test_util.py 31 from tensorflow.python.platform import gfile
85 assert gfile.Exists(logdir)
86 files = gfile.ListDirectory(logdir)
  /external/tensorflow/tensorflow/python/summary/writer/
event_file_writer_v2.py 26 from tensorflow.python.platform import gfile
76 if not gfile.IsDirectory(self._logdir):
77 gfile.MakeDirs(self._logdir)
  /external/tensorflow/tensorflow/contrib/eager/python/examples/revnet/
cifar_tfrecords.py 45 if tf.gfile.Exists(filepath):
47 if not tf.gfile.Exists(data_dir):
48 tf.gfile.MakeDirs(data_dir)
83 with tf.gfile.Open(filename, 'rb') as f:
  /external/tensorflow/tensorflow/contrib/slim/python/slim/
summaries_test.py 28 from tensorflow.python.platform import gfile
37 if gfile.Exists(output_dir):
38 gfile.DeleteRecursively(output_dir)
39 gfile.MakeDirs(output_dir)
  /external/tensorflow/tensorflow/python/debug/cli/
cli_config.py 25 from tensorflow.python.platform import gfile
44 if gfile.Exists(self._config_file_path):
125 with gfile.Open(self._config_file_path, "w") as config_file:
151 with gfile.Open(self._config_file_path, "r") as config_file:

Completed in 736 milliseconds

1 2 3 4 5