Home
last modified time | relevance | path

Searched refs:base_path (Results 1 – 25 of 128) sorted by relevance

123456

/external/tensorflow/tensorflow/contrib/session_bundle/
Dsession_bundle_test.py81 base_path = test.test_src_dir_path(SESSION_BUNDLE_PATH)
82 self.assertTrue(session_bundle.maybe_session_bundle_dir(base_path))
83 base_path = test.test_src_dir_path(SAVED_MODEL_PATH)
84 self.assertFalse(session_bundle.maybe_session_bundle_dir(base_path))
85 base_path = "complete_garbage"
86 self.assertFalse(session_bundle.maybe_session_bundle_dir(base_path))
89 base_path = test.test_src_dir_path(SESSION_BUNDLE_PATH)
92 base_path,
97 asset_path = os.path.join(base_path, constants.ASSETS_DIRECTORY)
116 base_path = test.test_src_dir_path("/no/such/a/dir")
[all …]
Dbundle_shim_test.py43 base_path = test.test_src_dir_path("/no/such/a/dir")
47 base_path)
262 base_path = test.test_src_dir_path(SESSION_BUNDLE_PATH)
263 meta_graph_filename = os.path.join(base_path,
317 base_path = test.test_src_dir_path(SESSION_BUNDLE_PATH)
321 base_path,
327 asset_path = os.path.join(base_path, constants.ASSETS_DIRECTORY)
341 base_path = test.test_src_dir_path(SAVED_MODEL_PATH)
345 base_path,
Dtest_util.cc27 const string base_path = tensorflow::testing::TensorFlowSrcRoot(); in TestSrcDirPath() local
/external/tensorflow/tensorflow/python/tools/
Dsaved_model_cli_test.py54 base_path = test.test_src_dir_path(SAVED_MODEL_PATH)
56 args = self.parser.parse_args(['show', '--dir', base_path, '--all'])
146 base_path = test.test_src_dir_path(SAVED_MODEL_PATH)
148 args = self.parser.parse_args(['show', '--dir', base_path])
157 base_path = test.test_src_dir_path(SAVED_MODEL_PATH)
160 ['show', '--dir', base_path, '--tag_set', 'serve'])
178 base_path = test.test_src_dir_path(SAVED_MODEL_PATH)
181 ['show', '--dir', base_path, '--tag_set', 'badtagset'])
186 base_path = test.test_src_dir_path(SAVED_MODEL_PATH)
189 'show', '--dir', base_path, '--tag_set', 'serve', '--signature_def',
[all …]
/external/autotest/site_utils/lxc/
Dbase_image.py97 base_path = os.path.join(self.container_path, self.base_name)
98 if lxc_utils.path_exists(base_path):
143 base_path = os.path.join(self.container_path, self.base_name)
153 path_to_cleanup = [tar_path, base_path]
163 config_path = os.path.join(base_path, 'config')
164 rootfs_path = os.path.join(base_path, 'rootfs')
177 base_path = os.path.join(self.container_path, self.base_name)
178 utils.run('sudo chown -R root "%s"' % base_path)
179 utils.run('sudo chgrp -R root "%s"' % base_path)
/external/bcc/src/lua/src/
Dsquish.lua17 base_path = opt;
106 base_path = (base_path or "."):gsub("/$", "").."/"
107 squishy_file = base_path .. "squishy";
178 return base_path..path;
183 return base_path..path;
209 module.path = module.path:gsub("^"..base_path:gsub("%p", "%%%1"), "");
220 path = base_path..module.path;
247 local res_file, err = io.open(base_path..path, "rb");
302 local fin, err = io.open(base_path..fn);
/external/libchrome/base/files/
Dscoped_temp_dir_unittest.cc67 FilePath base_path; in TEST() local
69 &base_path)); in TEST()
74 EXPECT_TRUE(dir.CreateUniqueTempDirUnderPath(base_path)); in TEST()
77 EXPECT_TRUE(base_path.IsParent(test_path)); in TEST()
78 EXPECT_TRUE(test_path.value().find(base_path.value()) != std::string::npos); in TEST()
81 base::DeleteFile(base_path, true); in TEST()
Dscoped_temp_dir.cc38 bool ScopedTempDir::CreateUniqueTempDirUnderPath(const FilePath& base_path) { in CreateUniqueTempDirUnderPath() argument
43 if (!base::CreateDirectory(base_path)) in CreateUniqueTempDirUnderPath()
47 if (!base::CreateTemporaryDirInDir(base_path, kScopedDirPrefix, &path_)) in CreateUniqueTempDirUnderPath()
/external/toolchain-utils/binary_search_tool/sysroot_wrapper/
Dtesting_test.py15 base_path = ('/var/cache/chromeos-chrome/chrome-src-internal/src/out_daisy/' variable
18 os.path.join(base_path, 'base/base.cpu.o'), os.path.join(
19 base_path, 'base/base.version.o'), os.path.join(base_path,
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_import.py90 base_path = dirname(self.filename)
91 base_path = join(base_path, imp_name)
94 if not exists(join(dirname(base_path), "__init__.py")):
97 if exists(base_path + ext):
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_import.py90 base_path = dirname(self.filename)
91 base_path = join(base_path, imp_name)
94 if not exists(join(dirname(base_path), "__init__.py")):
97 if exists(base_path + ext):
/external/autotest/client/
Dsetup_modules.py108 def setup(base_path, root_module_name=""): argument
126 base_path = os.path.abspath(os.path.join(base_path, '..'))
129 _import_children_into_module(root_module_name, base_path)
137 sys.path.insert(0, os.path.join(base_path, "site-packages"))
/external/jsoncpp/test/
Dpyjsontestrunner.py13 base_path = os.path.splitext(input_path)[0] variable
14 actual_path = base_path + '.actual'
15 rewrite_path = base_path + '.rewrite'
16 rewrite_actual_path = base_path + '.actual-rewrite'
Drunjsontests.py77 base_path = os.path.splitext(input_path)[0]
78 actual_output = safeReadFile( base_path + '.actual' )
79 actual_rewrite_output = safeReadFile( base_path + '.actual-rewrite' )
80 file(base_path + '.process-output','wt').write( process_output )
/external/iproute2/ip/
Dipvrf.c113 static void read_cgroup_pids(const char *base_path, char *name) in read_cgroup_pids() argument
120 base_path, name, CGRP_PROC_FILE) >= sizeof(path)) in read_cgroup_pids()
145 static int recurse_dir(char *base_path, char *name, const char *netns) in recurse_dir() argument
153 d = opendir(base_path); in recurse_dir()
162 const char *pdir = strrchr(base_path, '/'); in recurse_dir()
169 read_cgroup_pids(base_path, name); in recurse_dir()
176 base_path, de->d_name) >= sizeof(path)) in recurse_dir()
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Ddependency_manager_util.py36 base_path = ResolvePath(os.getcwd()) + os.path.sep
38 if not ResolvePath(os.path.join(base_path, member)).startswith(base_path):
Ddependency_manager_util_unittest.py108 base_path = os.path.join(tempfile.gettempdir(), str(uuid.uuid4()))
109 archive_path = shutil.make_archive(base_path, 'zip', dir_path)
153 base_path = os.path.join(tempfile.gettempdir(), str(uuid.uuid4()))
154 archive_path = shutil.make_archive(base_path, 'zip', dir_path)
Dbase_config.py128 base_path = os.path.dirname(self._config_path)
141 paths.append(os.path.abspath(os.path.join(base_path, path)))
151 os.path.join(base_path, download_path))
/external/autotest/client/site_tests/kernel_CrosECSysfsAccel/
Dkernel_CrosECSysfsAccel.py113 base_path = self.sysfs_accel_paths[name]
115 base_path = self.sysfs_accel_old_path
118 axis_path = os.path.join(base_path, '_'.join(name_list))
/external/python/cpython3/Lib/test/
Dtest_modulefinder.py303 base_path = os.path.join(TEST_DIR, 'a')
304 source_path = base_path + importlib.machinery.SOURCE_SUFFIXES[0]
305 bytecode_path = base_path + importlib.machinery.BYTECODE_SUFFIXES[0]
/external/tensorflow/tensorflow/contrib/learn/python/learn/utils/
Dsaved_model_export_utils_test.py805 base_path = os.path.join(export_dir_base, "e1")
806 gfile.MkDir(base_path)
807 return base_path
835 base_path = os.path.join(export_dir_base, "e1")
836 gfile.MkDir(base_path)
837 return base_path
865 base_path = os.path.join(export_dir_base, "e1")
866 gfile.MkDir(base_path)
867 return base_path
/external/autotest/client/tests/netpipe/
Dnetpipe.py25 base_path = os.path.join(self.srcdir, 'NPtcp -h')
26 self.client_path = '%s %%s -o %s %%s' % (base_path, self.NP_FILE)
/external/libchrome/base/metrics/
Dpersistent_histogram_allocator.cc710 bool GlobalHistogramAllocator::CreateWithActiveFile(const FilePath& base_path, in CreateWithActiveFile() argument
717 if (!base::ReplaceFile(active_path, base_path, nullptr)) in CreateWithActiveFile()
718 base::DeleteFile(base_path, /*recursive=*/false); in CreateWithActiveFile()
736 FilePath base_path, active_path, spare_path; in CreateWithActiveFileInDir() local
737 ConstructFilePaths(dir, name, &base_path, &active_path, &spare_path); in CreateWithActiveFileInDir()
738 return CreateWithActiveFile(base_path, active_path, spare_path, size, id, in CreateWithActiveFileInDir()
/external/autotest/client/deps/touchpad-tests/
Dcommon.py14 setup_modules.setup(base_path=client_dir,
/external/autotest/client/common_lib/cros/network/
Dcommon.py7 setup_modules.setup(base_path=client_dir,

123456