/external/tensorflow/tensorflow/python/debug/lib/ |
D | debug_data.py | 250 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 …]
|
D | profiling.py | 28 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/tensorflow/tensorflow/python/debug/cli/ |
D | evaluator_test.py | 31 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 …]
|
D | evaluator.py | 71 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/webrtc/webrtc/voice_engine/test/auto_test/standard/ |
D | hardware_before_streaming_test.cc | 38 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/compiler/tf2xla/ |
D | sharding_util.cc | 53 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/tensorflow/tensorflow/core/distributed_runtime/ |
D | worker_cache_partial.cc | 30 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/ |
D | debug_node_key.cc | 26 DebugNodeKey::DebugNodeKey(const string& device_name, const string& node_name, in DebugNodeKey() argument 28 : device_name(device_name), in DebugNodeKey() 34 device_path(DeviceNameToDevicePath(device_name)) {} in DebugNodeKey() 37 return (device_name == other.device_name && node_name == other.node_name && in operator ==() 45 const string DebugNodeKey::DeviceNameToDevicePath(const string& device_name) { in DeviceNameToDevicePath() argument 49 str_util::StringReplace(device_name, ":", "_", true), "/", ",", in DeviceNameToDevicePath()
|
/external/webrtc/talk/media/devices/ |
D | linuxdevicemanager.cc | 144 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/toybox/toys/pending/ |
D | mdev.c | 41 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/autotest/client/site_tests/network_WlanDriver/ |
D | network_WlanDriver.py | 177 device_name, module_path = device_description 178 logging.info('Device name %s, module path %s', device_name, module_path) 179 if not device_name in self.EXPECTED_DRIVER: 181 device_name) 183 if not base_revision in self.EXPECTED_DRIVER[device_name]: 185 (base_revision, device_name)) 187 expected_driver = self.EXPECTED_DRIVER[device_name][base_revision] 190 (base_revision, device_name,
|
/external/e2fsprogs/debugfs/ |
D | e2freefrag.c | 179 retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, in scan_online() 182 com_err(fs->device_name, retval, "while checking mount status"); in scan_online() 195 com_err(fs->device_name, errno, "while allocating memory"); in scan_online() 211 com_err(fs->device_name, errno, "while calling fsmap"); in scan_online() 322 static void close_device(char *device_name, ext2_filsys fs) in close_device() argument 327 com_err(device_name, retval, "while closing the filesystem.\n"); in close_device() 334 fprintf(f, "Device: %s\n", fs->device_name); in collect_info() 343 com_err(fs->device_name, retval, "while reading block bitmap"); in collect_info() 344 close_device(fs->device_name, fs); in collect_info() 350 com_err(fs->device_name, retval, "while dumping chunk info"); in collect_info() [all …]
|
/external/e2fsprogs/misc/ |
D | e2freefrag.c | 179 retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, in scan_online() 182 com_err(fs->device_name, retval, "while checking mount status"); in scan_online() 195 com_err(fs->device_name, errno, "while allocating memory"); in scan_online() 211 com_err(fs->device_name, errno, "while calling fsmap"); in scan_online() 322 static void close_device(char *device_name, ext2_filsys fs) in close_device() argument 327 com_err(device_name, retval, "while closing the filesystem.\n"); in close_device() 334 fprintf(f, "Device: %s\n", fs->device_name); in collect_info() 343 com_err(fs->device_name, retval, "while reading block bitmap"); in collect_info() 344 close_device(fs->device_name, fs); in collect_info() 350 com_err(fs->device_name, retval, "while dumping chunk info"); in collect_info() [all …]
|
/external/e2fsprogs/resize/ |
D | main.c | 45 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/autotest/client/bin/input/ |
D | input_event_recorder.py | 147 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/e2fsprogs/e2fsck/ |
D | iscan.c | 31 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/tensorflow/tensorflow/c/ |
D | kernels_test.cc | 69 static std::unique_ptr<OpKernel> GetFakeKernel(const char* device_name, in GetFakeKernel() argument 74 def.set_device(device_name); in GetFakeKernel() 82 return CreateOpKernel(DeviceType(device_name), nullptr, nullptr, def, 1, in GetFakeKernel() 91 const char* device_name = "FakeDeviceName1"; in TEST() local 100 op_name, device_name, &MyCreateFunc, &MyComputeFunc, &MyDeleteFunc); in TEST() 111 ASSERT_EQ(device_name, list.kernel(0).device_type()); in TEST() 119 GetFakeKernel(device_name, op_name, &status); in TEST() 143 const char* device_name = "FakeDeviceName2"; in TEST() local 186 TF_KernelBuilder* builder = TF_NewKernelBuilder(op_name, device_name, nullptr, in TEST() 212 GetFakeKernel(device_name, op_name, &status); in TEST()
|
/external/tensorflow/tensorflow/python/eager/ |
D | pywrap_tfe_test.py | 52 ctx._handle, ctx.device_name, "MatMul", None, None, a_2_by_2, 57 ctx._handle, ctx.device_name, "MatMul", None, None, a_100_by_784, 67 ctx._handle, ctx.device_name, "MatMul", None, None, m, m, "transpose_a", 70 ctx._handle, ctx.device_name, "MatMul", None, None, a_2_by_2, a_2_by_2, 83 ctx._handle, ctx.device_name, "MatMul", None, None, a_2_by_2, 98 ctx._handle, ctx.device_name, "MatMul", None, None, m, m, 114 pywrap_tensorflow.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name, 130 ctx._handle, ctx.device_name, "AddN", None, None, 147 pywrap_tensorflow.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name, 163 ctx._handle, ctx.device_name, "IdentityN", None, None, [all …]
|
/external/tensorflow/tensorflow/core/grappler/costs/ |
D | utils.cc | 409 string GetDeviceClassForNonChannelDevice(const string& device_name) { in GetDeviceClassForNonChannelDevice() argument 411 bool parsed = DeviceNameUtils::ParseFullName(device_name, &parsed_name); in GetDeviceClassForNonChannelDevice() 413 string name = str_util::StringReplace(device_name, "/job_", "/job:", true); in GetDeviceClassForNonChannelDevice() 431 string GetDeviceClass(const string& device_name) { in GetDeviceClass() argument 435 if (device_name.find("Channel") != string::npos) { in GetDeviceClass() 438 const auto from_loc = device_name.find(from); in GetDeviceClass() 439 const auto to_loc = device_name.find(to); in GetDeviceClass() 440 const auto src_device_full = device_name.substr( in GetDeviceClass() 442 const auto dst_device_full = device_name.substr(to_loc + to.size()); in GetDeviceClass() 447 return GetDeviceClassForNonChannelDevice(device_name); in GetDeviceClass() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | memory_types.cc | 122 const string& device_name, bool host, const Edge* edge) { in Send() argument 127 .Attr("send_device", device_name) in Send() 129 .Attr("recv_device", device_name) in Send() 136 const string& device_name, bool host, const Edge* edge) { in Recv() argument 142 .Attr("send_device", device_name) in Recv() 144 .Attr("recv_device", device_name) in Recv() 151 const string& device_name, Graph* g) { in EnsureMemoryTypes() argument 188 Send(g, tensor_name, device_name, (item.sm == HOST_MEMORY), e); in EnsureMemoryTypes() 189 recv = Recv(g, tensor_name, device_name, (item.dm == HOST_MEMORY), e); in EnsureMemoryTypes()
|
D | scoped_allocator_mgr.cc | 26 VLOG(1) << "AddScopedAllocator " << mgr_->device_name() in AddScopedAllocator() 51 VLOG(2) << "Adding instance with for " << mgr_->device_name() in AddScopedAllocator() 68 << mgr_->device_name(); in GetAllocator() 75 << mgr_->device_name(); in GetInstance() 82 << step_id_ << " on " << mgr_->device_name(); in GetInstance() 88 << step_id_ << " on " << mgr_->device_name(); in Drop() 101 << " on " << mgr_->device_name(); in ~ScopedAllocatorContainer() 140 VLOG(2) << "GetContainer " << step_id << " on " << device_name(); in GetContainer()
|
/external/autotest/client/common_lib/cros/cfm/ |
D | cras_input_node.py | 8 device_name): argument 14 self.device_name = device_name 19 self.device_name, self.gain))
|
D | cras_output_node.py | 8 device_name): argument 14 self.device_name = device_name 19 self.device_name, self.volume))
|
D | cras_node_collector.py | 112 device_name = self._get_device_name(device_data, device_id) 119 device_name=device_name) 129 device_name = self._get_device_name(device_data, device_id) 136 device_name=device_name)
|
/external/tensorflow/tensorflow/compiler/jit/ |
D | xla_cluster_util.cc | 273 for (absl::string_view device_name : device_names) { in PickDeviceForXlaImpl() local 274 if (!device_name.empty()) { in PickDeviceForXlaImpl() 275 device_names_set.insert(device_name); in PickDeviceForXlaImpl() 283 for (absl::string_view device_name : device_names_set) { in PickDeviceForXlaImpl() local 285 TF_RET_CHECK(DeviceNameUtils::ParseFullName(device_name, &parsed_name)) in PickDeviceForXlaImpl() 286 << device_name; in PickDeviceForXlaImpl() 292 maybe_gpu_device = device_name; in PickDeviceForXlaImpl() 298 maybe_cpu_device = device_name; in PickDeviceForXlaImpl() 304 maybe_unknown_device = device_name; in PickDeviceForXlaImpl()
|