/external/tensorflow/tensorflow/python/lib/io/ |
file_io_test.py | 16 """Testing File IO operations in file_io.py.""" 25 from tensorflow.python.lib.io import file_io 33 file_io.create_dir(self._base_dir) 36 file_io.delete_recursively(self._base_dir) 39 f = file_io.FileIO("", mode="r") 45 self.assertFalse(file_io.file_exists(file_path)) 47 _ = file_io.read_file_to_string(file_path) 51 file_io.write_string_to_file(file_path, "testing") 52 self.assertTrue(file_io.file_exists(file_path)) 53 file_contents = file_io.read_file_to_string(file_path [all...] |
/external/tensorflow/tensorflow/python/platform/ |
gfile.py | 16 """Import router for file_io.""" 22 from tensorflow.python.lib.io.file_io import copy as Copy 23 from tensorflow.python.lib.io.file_io import create_dir as MkDir 24 from tensorflow.python.lib.io.file_io import delete_file as Remove 25 from tensorflow.python.lib.io.file_io import delete_recursively as DeleteRecursively 26 from tensorflow.python.lib.io.file_io import file_exists as Exists 27 from tensorflow.python.lib.io.file_io import FileIO as _FileIO 28 from tensorflow.python.lib.io.file_io import get_matching_files as Glob 29 from tensorflow.python.lib.io.file_io import is_directory as IsDirectory 30 from tensorflow.python.lib.io.file_io import list_directory as ListDirector [all...] |
googletest.py | 32 from tensorflow.python.lib.io import file_io 85 file_io.delete_recursively(dirname)
|
/external/tensorflow/tensorflow/tools/gcs_test/python/ |
gcs_smoke.py | 27 from tensorflow.python.lib.io import file_io 55 """Verifies file_io directory handling methods.""" 61 file_io.create_dir(dir_name) 66 dir_exists = file_io.is_directory(dir_name) 76 file_io.recursive_create_dir(recursive_dir_name) 81 recursive_dir_exists = file_io.is_directory(recursive_dir_name) 91 file_io.write_string_to_file(file_name, "test file.") 95 directory_contents = file_io.list_directory(dir_name) 104 file_io.create_dir(dir_to_rename) 105 assert file_io.is_directory(dir_to_rename [all...] |
/external/tensorflow/tensorflow/contrib/saved_model/python/saved_model/ |
reader.py | 26 from tensorflow.python.lib.io import file_io 53 if not file_io.file_exists(path_to_pbtxt) and not file_io.file_exists( 59 if file_io.file_exists(path_to_pb): 61 file_content = file_io.FileIO(path_to_pb, "rb").read() 66 elif file_io.file_exists(path_to_pbtxt): 68 file_content = file_io.FileIO(path_to_pbtxt, "rb").read()
|
reader_test.py | 25 from tensorflow.python.lib.io import file_io 33 file_io.delete_recursively(test.get_temp_dir())
|
/external/tensorflow/tensorflow/python/framework/ |
graph_io.py | 26 from tensorflow.python.lib.io import file_io 66 if not file_io.file_exists(logdir) and not logdir.startswith('gs:'): 67 file_io.recursive_create_dir(logdir) 70 file_io.atomic_write_string_to_file(path, 73 file_io.atomic_write_string_to_file(path, graph_def.SerializeToString())
|
load_library.py | 32 from tensorflow.python.lib.io import file_io 150 if file_io.file_exists(library_location): 151 if file_io.is_directory(library_location): 152 directory_contents = file_io.list_directory(library_location)
|
meta_graph.py | 43 from tensorflow.python.lib.io import file_io 118 if not file_io.file_exists(filename): 121 file_content = file_io.FileIO(filename, "rb").read() 681 if not file_io.file_exists(filename): 684 file_content = file_io.FileIO(filename, "rb").read() [all...] |
/external/tensorflow/tensorflow/python/tools/ |
saved_model_utils.py | 26 from tensorflow.python.lib.io import file_io 53 if not file_io.file_exists(path_to_pbtxt) and not file_io.file_exists( 59 if file_io.file_exists(path_to_pb): 61 file_content = file_io.FileIO(path_to_pb, "rb").read() 66 elif file_io.file_exists(path_to_pbtxt): 68 file_content = file_io.FileIO(path_to_pbtxt, "rb").read()
|
saved_model_utils_test.py | 25 from tensorflow.python.lib.io import file_io 34 file_io.delete_recursively(test.get_temp_dir())
|
/external/tensorflow/tensorflow/contrib/session_bundle/ |
session_bundle.py | 32 from tensorflow.python.lib.io import file_io 51 return file_io.file_exists(meta_graph_filename) 84 if not file_io.file_exists(meta_graph_filename): 90 file_io.read_file_to_string(meta_graph_filename, binary_mode=True)) 98 checkpoint_v2 = file_io.file_exists(variables_index_filename) 105 variables_filename_list = file_io.get_matching_files( 110 if file_io.file_exists(variables_filename): 115 variables_filename_list = file_io.get_matching_files(variables_filename)
|
/external/tensorflow/tensorflow/contrib/tensorboard/plugins/projector/ |
__init__.py | 35 from tensorflow.python.lib.io import file_io 63 file_io.write_string_to_file(
|
/external/tensorflow/tensorflow/python/saved_model/ |
utils_impl.py | 30 from tensorflow.python.lib.io import file_io 182 if not file_io.file_exists(variables_dir): 183 file_io.recursive_create_dir(variables_dir) 205 if not file_io.file_exists(assets_destination_dir): 206 file_io.recursive_create_dir(assets_destination_dir)
|
loader_impl.py | 30 from tensorflow.python.lib.io import file_io 65 if file_io.file_exists(path_to_pb): 67 file_content = file_io.FileIO(path_to_pb, "rb").read() 72 elif file_io.file_exists(path_to_pbtxt): 74 file_content = file_io.FileIO(path_to_pbtxt, "rb").read() 216 return file_io.file_exists(txt_path) or file_io.file_exists(pb_path)
|
builder_impl.py | 32 from tensorflow.python.lib.io import file_io 97 if file_io.file_exists(export_dir): 98 if file_io.list_directory(export_dir): 104 file_io.recursive_create_dir(self._export_dir) 403 if not file_io.file_exists(self._export_dir): 404 file_io.recursive_create_dir(self._export_dir) 410 file_io.write_string_to_file(path, str(self._saved_model)) 415 file_io.write_string_to_file(path, self._saved_model.SerializeToString()) 691 if not file_io.filecmp(asset_filepath, other_asset_filepath): 761 if not file_io.file_exists(asset_destination_filepath) [all...] |
load_v1_in_v2_test.py | 30 from tensorflow.python.lib.io import file_io 180 file_io.delete_file(vocab_path)
|
saved_model_test.py | 33 from tensorflow.python.lib.io import file_io 54 file_io.delete_recursively(test.get_temp_dir()) 71 file_io.recursive_create_dir(parent_dir) 74 file_io.write_string_to_file(asset_filepath, asset_file_contents) 95 actual_asset_contents = file_io.read_file_to_string(assets_path) 189 file_io.delete_recursively(export_dir) 656 file_io.write_string_to_file(ignored_filepath, "will be ignored") 675 self.assertFalse(file_io.file_exists(ignored_asset_path)) 745 self.assertFalse(file_io.file_exists(ignored_asset_path)) [all...] |
/external/tensorflow/tensorflow/python/training/ |
checkpoint_management.py | 33 from tensorflow.python.lib.io import file_io 241 file_io.atomic_write_string_to_file(coord_checkpoint_filename, 271 if file_io.file_exists(coord_checkpoint_filename): 272 file_content = file_io.read_file_to_string( 343 if file_io.get_matching_files(v2_path) or file_io.get_matching_files( 372 if file_io.get_matching_files(pathname): 374 elif file_io.get_matching_files(checkpoint_prefix): 404 fnames = file_io.get_matching_files(pathname) 406 mtimes.append(file_io.stat(fnames[0]).mtime_nsec / 1e9 [all...] |
/external/tensorflow/tensorflow/tools/compatibility/update/ |
generate_v2_reorders_map.py | 27 from tensorflow.python.lib.io import file_io 133 file_io.write_string_to_file(output_file_path, renames_file_text)
|
generate_v2_renames_map.py | 29 from tensorflow.python.lib.io import file_io 182 file_io.write_string_to_file(output_file_path, renames_file_text)
|
/external/tensorflow/tensorflow/tools/api/tests/ |
api_compatibility_test.py | 41 from tensorflow.python.lib.io import file_io 175 self._update_golden_warning = file_io.read_file_to_string( 180 self._test_readme_message = file_io.read_file_to_string( 260 file_io.delete_file(filepath) 266 file_io.write_string_to_file( 325 golden_file_list = file_io.get_matching_files(golden_file_pattern) 332 text_format.Merge(file_io.read_file_to_string(filename), ret_val)
|
/external/tensorflow/tensorflow/ |
api_template.__init__.py | 71 from tensorflow.python.lib.io import file_io as _fi
|
api_template_v1.__init__.py | 85 from tensorflow.python.lib.io import file_io as _fi
|
/external/tensorflow/tensorflow/python/keras/saving/ |
saved_model.py | 32 from tensorflow.python.lib.io import file_io 134 file_io.write_string_to_file(model_json_filepath, model_json) 392 model_json = file_io.read_file_to_string(model_json_filepath)
|