/external/tensorflow/tensorflow/core/grappler/costs/ |
D | virtual_placer_test.cc | 28 std::unordered_map<string, DeviceProperties> devices; in TEST() local 31 devices["/job:localhost/replica:0/task:0/cpu:0"] = cpu_device; in TEST() 34 devices["/job:localhost/replica:0/task:0/device:GPU:0"] = gpu_device; in TEST() 35 VirtualCluster cluster(devices); in TEST() 58 std::unordered_map<string, DeviceProperties> devices; in TEST() local 61 devices["/CPU:0"] = cpu_device; in TEST() 64 devices["/GPU:0"] = gpu_device; in TEST() 65 VirtualCluster cluster(devices); in TEST() 88 std::unordered_map<string, DeviceProperties> devices; in TEST() local 91 devices["/job:localhost/replica:0/task:0/cpu:0"] = cpu_device; in TEST() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_device_test.cc | 92 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 94 opts, kDeviceNamePrefix, &devices); in TEST_F() 101 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 103 opts, kDeviceNamePrefix, &devices); in TEST_F() 111 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 113 opts, kDeviceNamePrefix, &devices); in TEST_F() 121 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 123 opts, kDeviceNamePrefix, &devices); in TEST_F() 133 std::vector<std::unique_ptr<Device>> devices; in TEST_F() local 135 opts, kDeviceNamePrefix, &devices); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/contrib/distribute/python/ |
D | cross_device_ops_test.py | 44 def _get_devices(devices): argument 45 if isinstance(devices, (tuple, list)): 46 return tuple(device_util.resolve(d) for d in devices) 47 elif isinstance(devices, value_lib.DistributedValues): 48 return devices.devices 49 return (device_util.resolve(devices),) 52 def _make_per_replica(values, devices, regroup=False): argument 53 devices = _get_devices(devices) 54 assert len(values) == len(devices) 59 with ops.device(devices[0]): [all …]
|
/external/webrtc/talk/media/devices/ |
D | devicemanager.cc | 94 std::vector<Device> devices; in GetCapabilities() local 96 if (GetAudioInputDevices(&devices) && !devices.empty()) { in GetCapabilities() 99 if (GetAudioOutputDevices(&devices) && !devices.empty()) { in GetCapabilities() 102 if (GetVideoCaptureDevices(&devices) && !devices.empty()) { in GetCapabilities() 108 bool DeviceManager::GetAudioInputDevices(std::vector<Device>* devices) { in GetAudioInputDevices() argument 109 return GetAudioDevices(true, devices); in GetAudioInputDevices() 112 bool DeviceManager::GetAudioOutputDevices(std::vector<Device>* devices) { in GetAudioOutputDevices() argument 113 return GetAudioDevices(false, devices); in GetAudioOutputDevices() 124 bool DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) { in GetVideoCaptureDevices() argument 125 devices->clear(); in GetVideoCaptureDevices() [all …]
|
D | win32devicemanager.cc | 146 std::vector<Device> devices; in GetDefaultVideoCaptureDevice() local 147 ret = (GetVideoCaptureDevices(&devices) && !devices.empty()); in GetDefaultVideoCaptureDevice() 149 *device = devices[0]; in GetDefaultVideoCaptureDevice() 150 for (size_t i = 0; i < devices.size(); ++i) { in GetDefaultVideoCaptureDevice() 151 if (strnicmp(devices[i].id.c_str(), kUsbDevicePathPrefix, in GetDefaultVideoCaptureDevice() 153 *device = devices[i]; in GetDefaultVideoCaptureDevice() 175 bool Win32DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) { in GetVideoCaptureDevices() argument 176 devices->clear(); in GetVideoCaptureDevices() 177 if (!GetDevices(CLSID_VideoInputDeviceCategory, devices)) { in GetVideoCaptureDevices() 180 return FilterDevices(devices, kFilteredVideoDevicesName); in GetVideoCaptureDevices() [all …]
|
D | devicemanager_unittest.cc | 125 std::vector<Device> devices; in TEST() local 128 EXPECT_TRUE(dm->GetVideoCaptureDevices(&devices)); in TEST() 237 static bool CompareDeviceList(std::vector<Device>& devices, in CompareDeviceList() argument 239 if (list_size != static_cast<int>(devices.size())) { in CompareDeviceList() 243 if (devices[i].name.compare(device_list[i]) != 0) { in CompareDeviceList() 272 std::vector<Device> devices; in TEST() local 274 devices.push_back(Device(kTotalDevicesName[i], i)); in TEST() 276 EXPECT_TRUE(CompareDeviceList(devices, kTotalDevicesName, in TEST() 279 EXPECT_TRUE(DeviceManager::FilterDevices(&devices, NULL)); in TEST() 281 EXPECT_TRUE(CompareDeviceList(devices, kTotalDevicesName, in TEST() [all …]
|
D | fakedevicemanager.h | 52 std::vector<Device> devices; in GetCapabilities() local 167 void SetAudioInputDevices(const std::vector<std::string>& devices) { in SetAudioInputDevices() argument 169 for (size_t i = 0; i < devices.size(); ++i) { in SetAudioInputDevices() 170 input_devices_.push_back(Device(devices[i], in SetAudioInputDevices() 175 void SetAudioOutputDevices(const std::vector<std::string>& devices) { in SetAudioOutputDevices() argument 177 for (size_t i = 0; i < devices.size(); ++i) { in SetAudioOutputDevices() 178 output_devices_.push_back(Device(devices[i], in SetAudioOutputDevices() 183 void SetVideoCaptureDevices(const std::vector<std::string>& devices) { in SetVideoCaptureDevices() argument 185 for (size_t i = 0; i < devices.size(); ++i) { in SetVideoCaptureDevices() 186 vidcap_devices_.push_back(Device(devices[i], in SetVideoCaptureDevices() [all …]
|
/external/openssh/ |
D | auth2-chall.c | 65 KbdintDevice *devices[] = { variable 82 char *devices; member 95 for (i = 0; devices[i] != NULL; i++) in remove_kbdint_device() 96 if (strcmp(devices[i]->name, devname) == 0) { in remove_kbdint_device() 97 for (j = i; devices[j] != NULL; j++) in remove_kbdint_device() 98 devices[j] = devices[j+1]; in remove_kbdint_device() 119 for (i = 0; devices[i]; i++) { in kbdint_alloc() 122 buffer_append(&b, devices[i]->name, in kbdint_alloc() 123 strlen(devices[i]->name)); in kbdint_alloc() 125 if ((kbdintctxt->devices = sshbuf_dup_string(&b)) == NULL) in kbdint_alloc() [all …]
|
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/ |
D | list_ports_posix.py | 34 devices = glob.glob('/dev/com*') 35 return [(d, d, d) for d in devices] 39 devices = glob.glob('/dev/cua*') 40 return [(d, d, d) for d in devices] 46 devices = glob.glob('/dev/cuad*') 47 return [(d, d, d) for d in devices] 55 devices = glob.glob('/dev/dty*') 56 return [(d, d, d) for d in devices] 61 devices = glob.glob('/dev/ttyf*') 62 return [(d, d, d) for d in devices] [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | placer.cc | 81 Placer::Placer(Graph* graph, const DeviceSet* devices, in Placer() argument 85 devices_(devices), in Placer() 90 Placer::Placer(Graph* graph, const DeviceSet* devices, in Placer() argument 92 : Placer(graph, devices, default_device, true, false) {} in Placer() 94 Placer::Placer(Graph* graph, const DeviceSet* devices) in Placer() argument 95 : Placer(graph, devices, nullptr, true, false) {} in Placer() 100 if (devices_->devices().empty()) { in Run() 143 const std::vector<Device*>* devices; in Run() local 144 Status status = colocation_graph.GetDevicesForNode(node, &devices); in Run() 174 if (CanAssignToDevice(input->assigned_device_name(), *devices)) { in Run() [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | nccl_ops_test.py | 32 def _DeviceTensors(tensors, devices): argument 34 for t, d in zip(tensors, devices): 40 def _NcclAllReduce(nccl_fun, tensors, devices): argument 41 return nccl_fun(_DeviceTensors(tensors, devices)) 44 def _NcclReduce(nccl_fun, tensors, devices): argument 45 receiver = np.random.randint(0, len(devices)) 46 with ops.device(devices[receiver]): 47 return [nccl_fun(_DeviceTensors(tensors, devices))] 50 def _NcclBroadcast(tensors, devices): argument 51 sender = np.random.randint(0, len(devices)) [all …]
|
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/include/ |
D | cpuhotplug_hotplug.sh | 72 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 78 $TIME echo 1 > /sys/devices/system/cpu/cpu${CPU}/online 93 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 99 $TIME echo 0 > /sys/devices/system/cpu/cpu${CPU}/online 112 [ -d /sys/devices/system/cpu/cpu0 ] || return -1 113 NUM=`ls /sys/devices/system/cpu/ \ 128 [ -d /sys/devices/system/cpu ] || return 1 129 (cd /sys/devices/system/cpu; ls -d cpu[0-9]*) 157 if [ -e /sys/devices/system/cpu/cpu$cpu ]; then 185 if [ -e /sys/devices/system/cpu/$cpu/online ]; then [all …]
|
/external/deqp/scripts/android/ |
D | install_apk.py | 59 devices = [] 69 devices.append(Device(m.group(1), m.group(2), m.group(3), m.group(4))) 71 return devices 144 def installToDevices (devices, doParallel, adbPath, packageName, apkPath): argument 145 padLen = max([len(device.model) for device in devices])+1 147 …apkPath, ("(%s):%s" % (device.model, ' ' * (padLen - len(device.model))))) for device in devices]); 149 serialApply(installToDevice, [(device, adbPath, packageName, apkPath) for device in devices]); 152 devices = getDevices(adbPath) 153 installToDevices(devices, doParallel, adbPath, packageName, apkPath) 226 devices = getDevices(args.adbPath) variable [all …]
|
/external/tensorflow/tensorflow/python/distribute/ |
D | mirrored_strategy.py | 248 devices = device_map.logical_to_actual_devices(logical_device) 249 value_list = real_mirrored_creator(devices, *args, **kwargs) 283 def _is_device_list_local(devices): argument 297 for d in devices: 319 devices = [] 323 devices.append("/job:%s/task:%d" % (task_type, task_id)) 325 devices.extend([ 329 return devices 332 def _group_device_list(devices): argument 342 assert not _is_device_list_local(devices) [all …]
|
D | all_reduce.py | 224 devices = num_workers * num_gpus 225 if devices == 0: 240 pred_by_s_d = [[-1 for d in range(0, devices)] 242 rank_by_s_d = [[-1 for d in range(0, devices)] 245 for d in range(0, devices): 246 for t in range(0, devices): 249 pred_by_s_d[s][d] = perms_by_s[s][(t + devices - 1) % devices] 280 devices = [t.device for t in input_tensors] 284 input_tensors, devices, 297 def _build_ring_gather(input_tensors, devices, num_subchunks, argument [all …]
|
/external/tensorflow/tensorflow/python/client/ |
D | device_lib_test.py | 31 devices = device_lib.list_local_devices() 32 self.assertGreater(len(devices), 0) 33 self.assertEqual(devices[0].device_type, "CPU") 35 devices = device_lib.list_local_devices(config_pb2.ConfigProto()) 36 self.assertGreater(len(devices), 0) 37 self.assertEqual(devices[0].device_type, "CPU") 41 self.assertGreater(len(devices), 1) 42 self.assertTrue("GPU" in [d.device_type for d in devices] or 43 "SYCL" in [d.device_type for d in devices])
|
D | session_list_devices_test.py | 37 devices = sess.list_devices() 39 [d.name for d in devices]), devices) 41 self.assertTrue(all(d.incarnation != 0 for d in devices)) 56 devices = sess.list_devices() 58 [d.name for d in devices]), devices) 60 self.assertTrue(all(d.incarnation != 0 for d in devices)) 73 devices = sess.list_devices() 74 device_names = set(d.name for d in devices) 80 self.assertTrue(all(d.incarnation != 0 for d in devices))
|
D | virtual_gpu_test.py | 57 self.devices = ['/cpu:0'] + gpu_devices 58 self._num_devices = len(self.devices) 84 logging.info('devices: %s', str(self.devices)) 129 devices, argument 135 for i in range(len(devices)): 136 with ops.device(devices[i]): 144 with ops.device(devices[op[2]]): 175 sess, random_seed, op_placement, self.devices, debug_mode=debug_mode) 189 logging.error('Devices: %s', self.devices) 217 for d in self._util.devices: [all …]
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | parallelizer_test.py | 93 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)] 94 self.assertTrue(all(d.doReturnTheThing() for d in devices)) 95 ParallelizerTestObject.parallel(devices).doSetTheThing(False).pFinish(1) 96 self.assertTrue(not any(d.doReturnTheThing() for d in devices)) 99 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)] 101 devices).doReturnTheThing().pGet(1) 107 devices = [ParallelizerTestObject(Exception('thing %d' % i)) 109 p = ParallelizerTestObject.parallel(devices).doRaiseTheThing() 121 devices = [ 128 p = ParallelizerTestObject.parallel(devices) [all …]
|
/external/autotest/client/common_lib/cros/fake_device_server/ |
D | devices_unittest.py | 14 from fake_device_server import devices 31 self.devices = devices.Devices( 44 new_device = self.devices.create_device(None, good_device_config) 52 self.devices.create_device, None, bad_device_config) 58 returned_json = self.devices.GET(1234) 63 self.devices.GET, 1235) 72 returned_json = self.devices.GET() 85 self.devices.DELETE(12345) 93 self.devices.DELETE, 12500)
|
/external/libdrm/tests/ |
D | drmdevice.c | 111 drmDevicePtr *devices; in main() local 122 devices = calloc(max_devices, sizeof(drmDevicePtr)); in main() 123 if (devices == NULL) { in main() 128 ret = drmGetDevices2(0, devices, max_devices); in main() 131 free(devices); in main() 136 print_device_info(devices[i], i, false); in main() 139 if (devices[i]->available_nodes & 1 << j) { in main() 140 printf("Opening device %d node %s\n", i, devices[i]->nodes[j]); in main() 141 fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC, 0); in main() 156 drmFreeDevices(devices, ret); in main() [all …]
|
/external/tensorflow/tensorflow/python/tpu/ |
D | tpu_system_metadata.py | 59 devices = [] 64 devices = [] 72 …devices.append(session_lib._DeviceAttributes(name, device_type, 0, 0)) # pylint: disable=protecte… 86 devices = sess.list_devices() 103 for device in devices: 118 'devices: {}'.format(devices)) 128 master_address, devices)) 138 devices = tuple(sorted(devices, key=_sort_key)) 145 devices=devices) 153 for device in metadata.devices:
|
/external/u-boot/examples/api/ |
D | glue.c | 164 static struct device_info devices[UB_MAX_DEV]; variable 168 return ((i < 0 || i >= UB_MAX_DEV) ? NULL : &devices[i]); in ub_dev_get() 182 memset(&devices, 0, sizeof(struct device_info) * UB_MAX_DEV); in ub_dev_enum() 183 di = &devices[0]; in ub_dev_enum() 197 di->cookie = devices[n - 1].cookie; in ub_dev_enum() 219 di = &devices[handle]; in ub_dev_open() 234 di = &devices[handle]; in ub_dev_close() 255 if (devices[handle].state != DEV_STA_OPEN) in dev_valid() 266 if (!(devices[handle].type & DEV_TYP_STOR)) in dev_stor_valid() 282 di = &devices[handle]; in ub_dev_read() [all …]
|
/external/libpcap/doc/ |
D | README.macos | 2 the BPF devices to capture packets with libpcap and allows users with 3 write access to the BPF devices to send packets with libpcap. 5 On some systems that use BPF, the BPF devices live on the root file 6 system, and the permissions and/or ownership on those devices can be 8 devices. 10 On newer versions of FreeBSD, the BPF devices live on devfs, and devfs 12 devices to give users other than root permission to read or write those 13 devices. 15 On macOS, the BPF devices live on devfs, but the macOS version of devfs 18 those devices. [all …]
|
/external/autotest/server/cros/network/ |
D | rf_switch_client_box.py | 45 self.devices = None 53 if self.devices is None: 54 self.devices = self.get_devices_using_labels([RF_SWITCH_DUT]) 55 return self.devices 68 devices = [] 73 devices.append(host.hostname) 74 return devices
|