/external/tensorflow/tensorflow/python/keras/distribute/ |
D | distributed_file_utils.py | 61 def _is_temp_dir(dirpath, strategy): argument 62 return dirpath.endswith(_get_base_dirpath(strategy)) 65 def _get_temp_dir(dirpath, strategy): argument 66 if _is_temp_dir(dirpath, strategy): 67 temp_dir = dirpath 69 temp_dir = os.path.join(dirpath, _get_base_dirpath(strategy)) 74 def write_dirpath(dirpath, strategy): argument 92 return dirpath 94 return dirpath 96 return dirpath [all …]
|
D | distributed_file_utils_test.py | 58 dirpath = self.get_temp_dir() 59 filepath = os.path.join(dirpath, 'foo.bar') 64 distributed_file_utils.write_dirpath(dirpath, strategy), dirpath) 67 dirpath = self.get_temp_dir() 68 filepath = os.path.join(dirpath, 'foo.bar') 72 os.path.join(dirpath, 'workertemp_3', 'foo.bar')) 74 distributed_file_utils.write_dirpath(dirpath, strategy), 75 os.path.join(dirpath, 'workertemp_3'))
|
/external/tensorflow/tensorflow/c/ |
D | env_test.cc | 35 ::tensorflow::string dirpath = in TEST() 37 TF_CreateDir(dirpath.c_str(), s); in TEST() 38 ASSERT_TF_OK(s) << "TF_CreateDir failed for " << dirpath << ": " in TEST() 42 ::tensorflow::io::JoinPath(dirpath, "somefile.txt"); in TEST() 57 TF_StringStream* children = TF_GetChildren(dirpath.c_str(), s); in TEST() 58 ASSERT_TF_OK(s) << "TF_GetChildren failed for " << dirpath; in TEST() 74 TF_DeleteDir(dirpath.c_str(), s); in TEST() 77 << dirpath; in TEST() 84 TF_DeleteDir(dirpath.c_str(), s); in TEST() 85 ASSERT_TF_OK(s) << "TF_DeleteDir failed for " << dirpath << ": " in TEST()
|
/external/autotest/client/common_lib/ |
D | file_utils.py | 67 def ensure_dir_exists(dirpath): argument 76 error_msg = 'Directory %s does not exist.' % dirpath 77 if not os.path.isdir(dirpath): 90 for dirpath in dirpaths: 91 ensure_dir_exists(dirpath) 94 def make_leaf_dir(dirpath): argument 104 os.makedirs(dirpath) 119 for dirpath in dirpaths: 120 make_leaf_dir(dirpath)
|
/external/libwebsockets/lib/misc/ |
D | dir.c | 40 lws_dir(const char *dirpath, void *user, lws_dir_callback_function cb) in lws_dir() argument 54 ir = uv_fs_scandir(&loop, &req, dirpath, 0, NULL); in lws_dir() 56 lwsl_err("Scandir on %s failed, errno %d\n", dirpath, LWS_ERRNO); in lws_dir() 64 if (cb(dirpath, user, &lde)) in lws_dir() 94 lws_dir(const char *dirpath, void *user, lws_dir_callback_function cb) in lws_dir() argument 100 n = scandir((char *)dirpath, &namelist, filter, alphasort); in lws_dir() 102 lwsl_err("Scandir on '%s' failed, errno %d\n", dirpath, LWS_ERRNO); in lws_dir() 170 if (cb(dirpath, user, &lde)) { in lws_dir()
|
/external/perfetto/infra/ci/worker/ |
D | artifacts_uploader.py | 91 def scan_and_upload_perf_folder(job_id, dirpath): argument 92 perf_folder = os.path.join(dirpath, 'perf') 114 dirpath = os.path.join(os.getenv('ARTIFACTS_DIR', default=os.curdir), job_id) 115 if not os.path.isdir(dirpath): 116 logging.error('Directory not found: %s', dirpath) 122 subprocess.call(['sudo', 'chown', '-R', str(os.geteuid()), dirpath]) 127 files = list_files(dirpath) 137 scan_and_upload_perf_folder(job_id, dirpath) 140 subprocess.call(['sudo', 'rm', '-rf', dirpath])
|
/external/tensorflow/tensorflow/tools/test/ |
D | upload_test_benchmarks.py | 94 def is_real_file(dirpath, fname): argument 95 fpath = os.path.join(dirpath, fname) 99 def get_mtime(dirpath, fname): argument 100 fpath = os.path.join(dirpath, fname) 104 def list_files_by_mtime(dirpath): argument 117 files = [f for f in os.listdir(dirpath) if is_real_file(dirpath, f)] 118 return sorted(files, key=lambda f: get_mtime(dirpath, f))
|
/external/autotest/site_utils/ |
D | gs_offloader.py | 213 def sanitize_dir(dirpath): argument 220 if not os.path.exists(dirpath): 222 _escape_rename(dirpath) 223 _escape_rename_dir_contents(dirpath) 224 _sanitize_fifos(dirpath) 225 _sanitize_symlinks(dirpath) 228 def _escape_rename_dir_contents(dirpath): argument 233 for filename in os.listdir(dirpath): 234 path = os.path.join(dirpath, filename) 236 for filename in os.listdir(dirpath): [all …]
|
/external/ImageMagick/PerlMagick/quantum/ |
D | Makefile.PL.in | 43 my $dirpath = catpath( $vol, $dir); 47 push @l, catfile($dirpath,'lib'); 48 push @l, catfile($dirpath,'..','lib'); 49 push @l, catfile($dirpath,'..','..','lib'); 50 push @l, catfile($dirpath,'..','..','..','lib'); 54 push @b, catfile($dirpath); 55 push @b, catfile($dirpath,'bin'); 56 push @b, catfile($dirpath,'..'); 57 push @b, catfile($dirpath,'..','bin'); 58 push @b, catfile($dirpath,'..','..'); [all …]
|
/external/ImageMagick/PerlMagick/default/ |
D | Makefile.PL.in | 43 my $dirpath = catpath( $vol, $dir); 47 push @l, catfile($dirpath,'lib'); 48 push @l, catfile($dirpath,'..','lib'); 49 push @l, catfile($dirpath,'..','..','lib'); 50 push @l, catfile($dirpath,'..','..','..','lib'); 54 push @b, catfile($dirpath); 55 push @b, catfile($dirpath,'bin'); 56 push @b, catfile($dirpath,'..'); 57 push @b, catfile($dirpath,'..','bin'); 58 push @b, catfile($dirpath,'..','..'); [all …]
|
/external/ImageMagick/PerlMagick/ |
D | Makefile.PL.in | 43 my $dirpath = catpath( $vol, $dir); 47 push @l, catfile($dirpath,'lib'); 48 push @l, catfile($dirpath,'..','lib'); 49 push @l, catfile($dirpath,'..','..','lib'); 50 push @l, catfile($dirpath,'..','..','..','lib'); 54 push @b, catfile($dirpath); 55 push @b, catfile($dirpath,'bin'); 56 push @b, catfile($dirpath,'..'); 57 push @b, catfile($dirpath,'..','bin'); 58 push @b, catfile($dirpath,'..','..'); [all …]
|
/external/tensorflow/tensorflow/c/experimental/filesystem/ |
D | modular_filesystem_test.cc | 433 const std::string dirpath = GetURIForPath("a_dir"); in TEST_P() local 434 Status status = env_->CreateDir(dirpath); in TEST_P() 439 const std::string dirpath = GetURIForPath("dir_not_found/a_dir"); in TEST_P() local 440 Status status = env_->CreateDir(dirpath); in TEST_P() 456 const std::string dirpath = GetURIForPath("a_dir"); in TEST_P() local 457 Status status = env_->CreateDir(dirpath); in TEST_P() 460 status = env_->CreateDir(dirpath); in TEST_P() 477 const std::string dirpath = GetURIForPath("a/path/to/a/dir"); in TEST_P() local 478 Status status = env_->RecursivelyCreateDir(dirpath); in TEST_P() 483 const std::string dirpath = GetURIForPath("a/path/to/a/dir"); in TEST_P() local [all …]
|
/external/yapf/yapf/yapflib/ |
D | file_resources.py | 128 for dirpath, _, filelist in os.walk(filename): 129 if dirpath != '.' and exclude and IsIgnored(dirpath, exclude): 130 excluded_dirs.append(dirpath) 132 elif any(dirpath.startswith(e) for e in excluded_dirs): 135 filepath = os.path.join(dirpath, f)
|
/external/rust/crates/walkdir/compare/ |
D | walk.py | 6 for dirpath, dirnames, filenames in os.walk(sys.argv[1]): 8 print(os.path.join(dirpath, n)) 10 print(os.path.join(dirpath, n))
|
/external/mesa3d/.gitlab-ci/tracie/ |
D | renderdoc_dump_images.py | 32 def cleanup(dirpath): argument 33 shutil.rmtree(dirpath) 35 dirpath = tempfile.mkdtemp() variable 36 atexit.register(cleanup, dirpath) 37 RENDERDOC_DEBUG_FILE = dirpath + "/renderdoc.log"
|
/external/python/cpython2/Lib/test/ |
D | test_test_support.py | 66 dirpath = support.TESTFN + 'd' 67 subdirpath = os.path.join(dirpath, 'subdir') 68 os.mkdir(dirpath) 70 support.rmtree(dirpath) 71 self.assertFalse(os.path.exists(dirpath)) 73 support.rmtree(dirpath) 75 os.mkdir(dirpath) 77 os.chmod(dirpath, stat.S_IRUSR|stat.S_IXUSR) 79 support.rmtree(dirpath) 80 self.assertFalse(os.path.exists(dirpath)) [all …]
|
/external/autotest/client/site_tests/kernel_CrosECSysfsAccel/ |
D | kernel_CrosECSysfsAccel.py | 56 dirpath = os.path.join(self.sysfs_accel_search_path, d) 57 namepath = os.path.join(dirpath, 'name') 75 locpath = os.path.join(dirpath, 'location') 82 self.sysfs_accel_old_path = dirpath 88 self.sysfs_accel_paths[loc] = dirpath
|
/external/python/setuptools/setuptools/ |
D | wheel.py | 33 for dirpath, dirnames, filenames in os.walk(src_dir): 34 subdir = os.path.relpath(dirpath, src_dir) 36 src = os.path.join(dirpath, f) 40 src = os.path.join(dirpath, d) 48 for dirpath, dirnames, filenames in os.walk(src_dir, topdown=True): 50 os.rmdir(dirpath)
|
/external/python/cpython3/Lib/test/ |
D | test_support.py | 53 dirpath = support.TESTFN + 'd' 54 subdirpath = os.path.join(dirpath, 'subdir') 55 os.mkdir(dirpath) 57 support.rmtree(dirpath) 58 self.assertFalse(os.path.exists(dirpath)) 60 support.rmtree(dirpath) 62 os.mkdir(dirpath) 64 os.chmod(dirpath, stat.S_IRUSR|stat.S_IXUSR) 66 support.rmtree(dirpath) 67 self.assertFalse(os.path.exists(dirpath)) [all …]
|
/external/python/cpython3/Lib/tkinter/test/ |
D | runtktests.py | 30 for dirpath, dirnames, filenames in os.walk(basepath): 35 if is_package(dirpath) and filenames: 36 pkg_name = dirpath[len(basepath) + len(os.sep):].replace('/', '.')
|
/external/python/cpython2/Lib/lib-tk/test/ |
D | runtktests.py | 32 for dirpath, dirnames, filenames in os.walk(basepath): 37 if is_package(dirpath) and filenames: 38 pkg_name = dirpath[len(basepath) + len(os.sep):].replace('/', '.')
|
/external/skqp/gn/ |
D | checkdir.py | 11 dirpath, = sys.argv[1:] variable 13 print os.path.isdir(dirpath)
|
D | highest_version_dir.py | 12 dirpath = sys.argv[1] variable 15 print sorted(filter(regex.match, os.listdir(dirpath)))[-1]
|
/external/skia/gn/ |
D | checkdir.py | 13 dirpath, = sys.argv[1:] variable 15 print(os.path.isdir(dirpath))
|
D | highest_version_dir.py | 14 dirpath = sys.argv[1] variable 17 print(sorted(filter(regex.match, os.listdir(dirpath)))[-1])
|