Home
last modified time | relevance | path

Searched refs:device_name (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/external/tensorflow/tensorflow/python/debug/lib/
Ddebug_data.py250 def device_name_to_device_path(device_name): argument
252 device_name_items = compat.as_text(device_name).split("/")
334 return "{DebugTensorDatum (%s) %s:%d @ %s @ %d}" % (self.device_name,
388 def device_name(self): member in DebugTensorDatum
515 device_name = device_path_to_device_name(device_dir)
516 self._device_names.append(device_name)
517 self._load_device_dumps(device_name, device_dir)
521 for device_name in self._device_names:
522 self._create_tensor_watch_maps(device_name)
524 def _load_device_dumps(self, device_name, device_root): argument
[all …]
Dprofiling.py28 device_name, argument
44 self.device_name = device_name
78 device_and_node = "%s:%s" % (profile_datum.device_name,
92 device_and_node = "%s:%s" % (profile_datum.device_name,
95 device_and_node = "%s:%s" % (profile_datum.device_name,
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dhardware_before_streaming_test.cc38 char device_name[128] = {0}; in TEST_F() local
43 -1, device_name, guid_name)); in TEST_F()
44 EXPECT_GT(strlen(device_name), 0u) << kNoDevicesErrorMessage; in TEST_F()
45 device_name[0] = '\0'; in TEST_F()
48 -1, device_name, guid_name)); in TEST_F()
49 EXPECT_GT(strlen(device_name), 0u) << kNoDevicesErrorMessage; in TEST_F()
53 0, device_name, guid_name)); in TEST_F()
54 EXPECT_GT(strlen(device_name), 0u) << kNoDevicesErrorMessage; in TEST_F()
55 device_name[0] = '\0'; in TEST_F()
58 0, device_name, guid_name)); in TEST_F()
[all …]
/external/tensorflow/tensorflow/python/debug/cli/
Devaluator_test.py31 device_name, node_name, output_slot, debug_op, exec_index = (
33 self.assertIsNone(device_name)
39 device_name, node_name, output_slot, debug_op, exec_index = (
41 self.assertIsNone(device_name)
48 device_name, node_name, output_slot, debug_op, exec_index = (
50 self.assertIsNone(device_name)
56 device_name, node_name, output_slot, debug_op, exec_index = (
59 self.assertIsNone(device_name)
66 device_name, node_name, output_slot, debug_op, exec_index = (
69 self.assertEqual("/job:ps/replica:0/task:2/cpu:0", device_name)
[all …]
Devaluator.py71 device_name = debug_tensor_name[
75 device_name = None
103 return device_name, node_name, output_slot, debug_op, exec_index
135 device_name, node_name, output_slot, debug_op, exec_index = (
141 device_name=device_name)[exec_index]
/external/tensorflow/tensorflow/compiler/tf2xla/
Dsharding_util.cc53 const string& device_name, int num_cores_per_replica, in ParseShardingFromDevice() argument
55 if (device_name.empty()) { in ParseShardingFromDevice()
59 if (!DeviceNameUtils::ParseFullName(device_name, &parsed_device)) { in ParseShardingFromDevice()
60 return errors::InvalidArgument("Malformed assigned device '", device_name, in ParseShardingFromDevice()
82 const string& device_name = node_def.device(); in ParseShardingFromDevice() local
85 return ParseShardingFromDevice(device_name, num_cores_per_replica, sharding); in ParseShardingFromDevice()
90 string device_name = node.assigned_device_name(); in ParseShardingFromDevice() local
91 if (device_name.empty()) { in ParseShardingFromDevice()
92 device_name = node.requested_device(); in ParseShardingFromDevice()
96 return ParseShardingFromDevice(device_name, num_cores_per_replica, sharding); in ParseShardingFromDevice()
[all …]
/external/autotest/client/site_tests/policy_DeviceDockMacAddressSource/
Dpolicy_DeviceDockMacAddressSource.py30 device_name = active_ethernet.stdout.split(":")
31 device_name = device_name[1].lstrip()
32 return device_name
35 def _get_dock_mac(self, device_name): argument
45 device_name))
53 def _get_dut_mac(self, device_name): argument
56 'cat /sys/class/net/{}/address'.format(device_name))
88 device_name = self._get_device_name()
89 dock_mac = self._get_dock_mac(device_name)
90 dut_mac = self._get_dut_mac(device_name)
/external/tensorflow/tensorflow/core/distributed_runtime/
Dworker_cache_partial.cc30 const string& device_name, DeviceLocality* locality) { in GetDeviceLocalityNonBlocking() argument
32 auto iter = device_status_cache_.find(device_name); in GetDeviceLocalityNonBlocking()
40 void WorkerCachePartial::GetDeviceLocalityAsync(const string& device_name, in GetDeviceLocalityAsync() argument
43 if (!GetDeviceLocalityNonBlocking(device_name, locality)) { in GetDeviceLocalityAsync()
45 SchedClosure([this, &device_name, locality, done]() { in GetDeviceLocalityAsync()
46 Status s = RefreshDeviceStatus(device_name); in GetDeviceLocalityAsync()
47 if (s.ok() && !GetDeviceLocalityNonBlocking(device_name, locality)) { in GetDeviceLocalityAsync()
48 s = errors::Unavailable("No known remote device: ", device_name); in GetDeviceLocalityAsync()
57 Status WorkerCachePartial::RefreshDeviceStatus(const string& device_name) { in RefreshDeviceStatus() argument
61 if (!DeviceNameUtils::SplitDeviceName(device_name, &task, &device)) { in RefreshDeviceStatus()
[all …]
/external/tensorflow/tensorflow/core/debug/
Ddebug_node_key.cc27 DebugNodeKey::DebugNodeKey(const string& device_name, const string& node_name, in DebugNodeKey() argument
29 : device_name(device_name), in DebugNodeKey()
35 device_path(DeviceNameToDevicePath(device_name)) {} in DebugNodeKey()
38 return (device_name == other.device_name && node_name == other.node_name && in operator ==()
46 const string DebugNodeKey::DeviceNameToDevicePath(const string& device_name) { in DeviceNameToDevicePath() argument
50 str_util::StringReplace(device_name, ":", "_", true), "/", ",", in DeviceNameToDevicePath()
/external/mesa3d/.gitlab-ci/tracie/
Ddump_trace_images.py70 def dump_with_apitrace(retrace_cmd, trace_path, calls, device_name): argument
71 outputdir = str(trace_path.parent / "test" / device_name)
82 def dump_with_renderdoc(trace_path, calls, device_name): argument
83 outputdir = str(trace_path.parent / "test" / device_name)
90 def dump_with_gfxreconstruct(trace_path, calls, device_name): argument
92 outputdir_path = trace_path.parent / "test" / device_name
116 def dump_with_testtrace(trace_path, calls, device_name): argument
118 outputdir_path = trace_path.parent / "test" / device_name
132 def dump_from_trace(trace_path, calls, device_name): argument
137 dump_with_apitrace(["eglretrace"], trace_path, calls, device_name)
[all …]
Dtracie.py32 def replay(trace_path, device_name): argument
33 success = dump_trace_images.dump_from_trace(trace_path, [], device_name)
41 files = glob.glob(str(base_path / "test" / device_name / (file_name + "-*" + ".png")))
44 files = glob.glob(str(base_path / "test" / device_name / (file_name + ".log")))
147 def gitlab_check_trace(project_url, device_name, trace, expectation): argument
155 checksum, image_file, log_file = replay(trace_path, device_name)
171 dir_in_results = os.path.join(trace_dir, "test", device_name)
190 def write_junit_xml(junit_xml_path, traces_filename, device_name, results): argument
205 testsuite_name = os.path.basename(traces_filename) + ":" + device_name
223 def run(filename, device_name): argument
[all …]
/external/webrtc/talk/media/devices/
Dlinuxdevicemanager.cc144 std::string device_name = devdir + filename; in ScanDeviceDirectory() local
147 V4LLookup::IsV4L2Device(device_name)) { in ScanDeviceDirectory()
148 devices->push_back(Device(device_name, device_name)); in ScanDeviceDirectory()
156 std::string device_name; in GetVideoDeviceNameK2_6() local
162 if (device_meta_stream->ReadLine(&device_name) != rtc::SR_SUCCESS) { in GetVideoDeviceNameK2_6()
168 return device_name; in GetVideoDeviceNameK2_6()
209 std::string device_name; in GetVideoDeviceName() local
216 device_name = GetVideoDeviceNameK2_6(meta_file_path); in GetVideoDeviceName()
218 if (device_name.empty()) { in GetVideoDeviceName()
222 device_name = GetVideoDeviceNameK2_6(meta_file_path); in GetVideoDeviceName()
[all …]
/external/autotest/client/site_tests/network_WlanDriver/
Dnetwork_WlanDriver.py178 device_name, module_path = device_description
179 logging.info('Device name %s, module path %s', device_name, module_path)
180 if not device_name in self.EXPECTED_DRIVER:
182 device_name)
184 if not base_revision in self.EXPECTED_DRIVER[device_name]:
186 (base_revision, device_name))
188 expected_driver = self.EXPECTED_DRIVER[device_name][base_revision]
191 (base_revision, device_name,
/external/toybox/toys/pending/
Dmdev.c41 char *device_name = 0, *custom_name = 0, *s, *temp; in make_device() local
73 device_name = getenv("DEVNAME"); in make_device()
75 if (!device_name) in make_device()
76 device_name = strrchr(path, '/') + 1; in make_device()
79 while ((temp = strchr(device_name, '!'))) { in make_device()
124 result=regexec(&match, device_name, 1, &off, 0); in make_device()
130 || off.rm_eo!=strlen(device_name)) in make_device()
195 device_name = NULL; in make_device()
224 if(device_name) { in make_device()
235 sprintf(toybuf, "/dev/%s", device_name); in make_device()
[all …]
/external/e2fsprogs/misc/
De2freefrag.c180 retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, in scan_online()
183 com_err(fs->device_name, retval, "while checking mount status"); in scan_online()
196 com_err(fs->device_name, errno, "while allocating memory"); in scan_online()
213 com_err(fs->device_name, errno, "while calling fsmap"); in scan_online()
327 static void close_device(char *device_name, ext2_filsys fs) in close_device() argument
332 com_err(device_name, retval, "while closing the filesystem.\n"); in close_device()
340 fprintf(f, "Device: %s\n", fs->device_name); in collect_info()
349 com_err(fs->device_name, retval, "while reading block bitmap"); in collect_info()
350 close_device(fs->device_name, fs); in collect_info()
356 com_err(fs->device_name, retval, "while dumping chunk info"); in collect_info()
[all …]
/external/e2fsprogs/debugfs/
De2freefrag.c180 retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, in scan_online()
183 com_err(fs->device_name, retval, "while checking mount status"); in scan_online()
196 com_err(fs->device_name, errno, "while allocating memory"); in scan_online()
213 com_err(fs->device_name, errno, "while calling fsmap"); in scan_online()
327 static void close_device(char *device_name, ext2_filsys fs) in close_device() argument
332 com_err(device_name, retval, "while closing the filesystem.\n"); in close_device()
340 fprintf(f, "Device: %s\n", fs->device_name); in collect_info()
349 com_err(fs->device_name, retval, "while reading block bitmap"); in collect_info()
350 close_device(fs->device_name, fs); in collect_info()
356 com_err(fs->device_name, retval, "while dumping chunk info"); in collect_info()
[all …]
/external/e2fsprogs/resize/
Dmain.c45 static char *device_name, *io_options; variable
330 device_name = argv[optind++]; in main()
336 io_options = strchr(device_name, '?'); in main()
350 retval = ext2fs_check_mount_point(device_name, &mount_flags, in main()
355 device_name); in main()
364 fd = ext2fs_open_file(device_name, O_RDWR, 0); in main()
367 device_name); in main()
375 device_name); in main()
384 device_name); in main()
407 retval = resize2fs_setup_tdb(device_name, undo_file, &io_ptr); in main()
[all …]
/external/e2fsprogs/e2fsck/
Discan.c31 const char * device_name = NULL; variable
75 device_name = argv[optind]; in PRS()
77 int fd = open(device_name, O_RDONLY, 0); in PRS()
81 _("while opening %s for flushing"), device_name); in PRS()
86 _("while trying to flush %s"), device_name); in PRS()
107 retval = ext2fs_open(device_name, 0, in main()
111 device_name); in main()
/external/autotest/client/bin/input/
Dinput_event_recorder.py147 def __init__(self, device_name): argument
153 self.device_name = device_name
154 self.device_node = self.get_device_node_by_name(device_name)
156 err_msg = 'Failed to find the device node of %s' % device_name
164 def get_device_node_by_name(self, device_name): argument
188 device_pattern = re.compile('N: Name=.*%s' % device_name, re.I)
309 device_name = 'Atmel maXTouch Touchpad'
310 recorder = InputEventRecorder(device_name)
311 print 'Samus touchpad device name:', recorder.device_name
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe_test.py57 pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
63 pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
76 x = pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
80 y = pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
96 z = pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
114 z = pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
134 pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name, "AddN",
150 z1 = pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
170 pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
187 z1 = pywrap_tfe.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name,
[all …]
/external/tensorflow/tensorflow/core/grappler/costs/
Dutils.cc392 string GetDeviceClassForNonChannelDevice(const string& device_name) { in GetDeviceClassForNonChannelDevice() argument
394 bool parsed = DeviceNameUtils::ParseFullName(device_name, &parsed_name); in GetDeviceClassForNonChannelDevice()
396 string name = str_util::StringReplace(device_name, "/job_", "/job:", true); in GetDeviceClassForNonChannelDevice()
414 string GetDeviceClass(const string& device_name) { in GetDeviceClass() argument
418 if (device_name.find("Channel") != string::npos) { in GetDeviceClass()
421 const auto from_loc = device_name.find(from); in GetDeviceClass()
422 const auto to_loc = device_name.find(to); in GetDeviceClass()
423 const auto src_device_full = device_name.substr( in GetDeviceClass()
425 const auto dst_device_full = device_name.substr(to_loc + to.size()); in GetDeviceClass()
430 return GetDeviceClassForNonChannelDevice(device_name); in GetDeviceClass()
[all …]
/external/tensorflow/tensorflow/c/
Dkernels_test.cc93 static std::unique_ptr<OpKernel> GetFakeKernel(const char* device_name, in GetFakeKernel() argument
98 def.set_device(device_name); in GetFakeKernel()
106 return CreateOpKernel(DeviceType(device_name), nullptr, nullptr, def, 1, in GetFakeKernel()
115 const char* device_name = "FakeDeviceName1"; in TEST() local
124 op_name, device_name, &MyCreateFunc, &MyComputeFunc, &MyDeleteFunc); in TEST()
135 ASSERT_EQ(device_name, list.kernel(0).device_type()); in TEST()
143 GetFakeKernel(device_name, op_name, &status); in TEST()
167 const char* device_name = "FakeDeviceName2"; in TEST() local
210 TF_KernelBuilder* builder = TF_NewKernelBuilder(op_name, device_name, nullptr, in TEST()
236 GetFakeKernel(device_name, op_name, &status); in TEST()
[all …]
/external/autotest/client/common_lib/cros/cfm/
Dcras_input_node.py8 device_name): argument
14 self.device_name = device_name
19 self.device_name, self.gain))
Dcras_output_node.py8 device_name): argument
14 self.device_name = device_name
19 self.device_name, self.volume))
/external/nos/host/generic/libnos/
DNuggetClient.cpp28 NuggetClient::NuggetClient(const std::string& device_name) in NuggetClient() argument
29 : device_name_(device_name), open_(false) { in NuggetClient()
32 NuggetClient::NuggetClient(const char* device_name) in NuggetClient() argument
33 : device_name_(device_name ? device_name : ""), open_(false) {} in NuggetClient()

12345678910>>...18