Home
last modified time | relevance | path

Searched refs:dirpath (Results 1 – 25 of 125) sorted by relevance

12345

/external/tensorflow/tensorflow/python/keras/distribute/
Ddistributed_file_utils.py61 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 …]
Ddistributed_file_utils_test.py58 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/
Denv_test.cc35 ::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/
Dfile_utils.py67 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/
Ddir.c40 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/
Dartifacts_uploader.py91 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/
Dupload_test_benchmarks.py94 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/
Dgs_offloader.py213 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/
DMakefile.PL.in43 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/
DMakefile.PL.in43 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/
DMakefile.PL.in43 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/
Dmodular_filesystem_test.cc433 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/
Dfile_resources.py128 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/
Dwalk.py6 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/
Drenderdoc_dump_images.py32 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/
Dtest_test_support.py66 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/
Dkernel_CrosECSysfsAccel.py56 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/
Dwheel.py33 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/
Dtest_support.py53 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/
Druntktests.py30 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/
Druntktests.py32 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/
Dcheckdir.py11 dirpath, = sys.argv[1:] variable
13 print os.path.isdir(dirpath)
Dhighest_version_dir.py12 dirpath = sys.argv[1] variable
15 print sorted(filter(regex.match, os.listdir(dirpath)))[-1]
/external/skia/gn/
Dcheckdir.py13 dirpath, = sys.argv[1:] variable
15 print(os.path.isdir(dirpath))
Dhighest_version_dir.py14 dirpath = sys.argv[1] variable
17 print(sorted(filter(regex.match, os.listdir(dirpath)))[-1])

12345