Home
last modified time | relevance | path

Searched refs:worker_devices (Results 1 – 25 of 26) sorted by relevance

12

/external/tensorflow/tensorflow/python/distribute/
Dinput_lib.py509 def worker_devices(self): member in InputWorkers
516 devices = self.worker_devices
545 worker_devices = []
546 …for i, worker in enumerate(iterator._input_workers.worker_devices): # pylint: disable=protected-a…
554 worker_devices.append(worker_has_value.device)
618 if not input_workers.worker_devices:
653 for i, worker in enumerate(self._input_workers.worker_devices):
677 for i, worker in enumerate(self._input_workers.worker_devices):
744 for i, w in enumerate(self._input_workers.worker_devices):
1002 input_workers.worker_devices)
[all …]
Dcollective_all_reduce_strategy.py526 return input_lib.InputWorkers([(host_device, self.worker_devices)])
531 self.worker_devices])])
626 num_local_replicas = len(self.worker_devices)
737 if num_devices == len(self.worker_devices):
756 len(self.worker_devices) == 1):
768 reduce_op, value, destinations, len(self.worker_devices))
916 return len(self.worker_devices) * self._num_workers
931 return self._id_in_cluster * len(self.worker_devices) + replica_id
935 self._id_in_cluster * len(self.worker_devices))
Done_device_strategy_test.py77 iterator, distribution.extended.worker_devices, expected_values)
92 iterator, distribution.extended.worker_devices, expected_values,
140 distribution.extended.worker_devices[0]).device_type)
Dtf_function_test.py57 worker = distribution.extended.worker_devices[0]
83 worker = distribution.extended.worker_devices[0]
Dmirrored_strategy_test.py183 self._test_input_fn_iterator(iterator, distribution.extended.worker_devices,
200 self._test_input_fn_iterator(iterator, distribution.extended.worker_devices,
256 device in distribution.extended.worker_devices]
790 distribution.extended.worker_devices[0], mirrored_var._devices[0])
792 distribution.extended.worker_devices[1], mirrored_var._devices[1])
805 distribution.extended.worker_devices[0], mirrored_var._devices[0])
807 distribution.extended.worker_devices[1], mirrored_var._devices[1])
868 distribution.extended.worker_devices[0], mirrored_var._devices[0])
870 distribution.extended.worker_devices[1], mirrored_var._devices[1])
1207 iterator, distribution.extended.worker_devices, expected_values, sess)
[all …]
Dtpu_strategy_test.py369 self.assertLen(first_core_strategy.extended.worker_devices, 1)
370 self.assertEndsWith(first_core_strategy.extended.worker_devices[0],
373 self.assertLen(second_core_strategy.extended.worker_devices, 1)
374 self.assertEndsWith(second_core_strategy.extended.worker_devices[0],
859 for device in set(strategy.extended.worker_devices):
865 self.assertLen(strategy.extended.worker_devices, trace_count[0])
1014 distribution.extended.worker_devices,
1252 strategy0.extended.worker_devices)
1275 strategy1.extended.worker_devices)
Dmirrored_strategy.py404 worker_devices = []
409 worker_devices.append((worker, device_dict[job][task]))
422 self._input_workers_devices = worker_devices
809 def worker_devices(self): member in MirroredExtended
818 return self.worker_devices
Dstrategy_test_lib.py288 expected_devices = [False] * len(d.extended.worker_devices)
293 self.assertLess(replica_id, len(d.extended.worker_devices))
299 [True] * len(d.extended.worker_devices))
365 self._test_input_fn_iterator(iterator, strategy.extended.worker_devices,
771 iterator, distribution.extended.worker_devices, expected_values, sess)
796 iterator, distribution.extended.worker_devices, expected_values, sess,
Done_device_strategy.py437 def worker_devices(self): member in OneDeviceExtended
487 return self._strategy.extended.worker_devices
Dvalues_test.py88 devices = distribution.extended.worker_devices
294 for i in range(len(distribution.extended.worker_devices)):
310 worker_devices = distribution.extended.worker_devices
314 worker_device_id = ctx.replica_id_in_sync_group % len(worker_devices)
315 with ops.device(worker_devices[worker_device_id]):
319 for i in range(len(distribution.extended.worker_devices)):
321 worker_devices[i])
1107 devices = strategy.extended.worker_devices
Dinput_lib_test.py452 for tpu_device in distribution.extended.worker_devices:
905 for replica_id in range(len(distribution.extended.worker_devices)):
1063 len(distribution.extended.worker_devices),
1495 assert x.values[0].device == distribution.extended.worker_devices[0]
1496 assert x.values[0].backing_device == distribution.extended.worker_devices[
1498 assert x.values[1].device == distribution.extended.worker_devices[1]
1499 assert x.values[1].backing_device == distribution.extended.worker_devices[
Dtest_util.py62 assert len(strategy.extended.worker_devices) == len(value._values)
Dcustom_training_loop_input_test.py416 self.assertAllEqual(backing_devices, distribution.extended.worker_devices)
433 self.assertAllEqual(backing_devices, distribution.extended.worker_devices)
450 self.assertAllEqual(backing_devices, distribution.extended.worker_devices)
Dmirrored_variable_test.py497 for i, _ in enumerate(distribution.extended.worker_devices):
509 expected_mean /= len(distribution.extended.worker_devices)
Dcollective_all_reduce_strategy_test.py223 devices = distribution.extended.worker_devices
569 list(range(len(strategy.extended.worker_devices))) *
Dtpu_strategy.py1380 def worker_devices(self): member in TPUExtended
1385 return self.worker_devices
1546 return (ds.extended.worker_devices[replica_id],)
Ddistribute_lib.py789 len(extended.worker_devices) > 1)
2584 def worker_devices(self): member in StrategyExtendedV2
3503 def worker_devices(self): member in _DefaultDistributionExtended
Dmirrored_run.py151 devices = distribution.extended.worker_devices
Dparameter_server_strategy.py658 def worker_devices(self): member in ParameterServerStrategyExtended
Dparameter_server_strategy_test.py532 devices = distribution.extended.worker_devices
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.distribute.-strategy-extended.pbtxt14 name: "worker_devices"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.distribute.-strategy-extended.pbtxt31 name: "worker_devices"
/external/tensorflow/tensorflow/python/data/kernel_tests/
Diterator_test.py673 worker_devices = [
677 for device in worker_devices:
683 targets = dataset_ops.Dataset.from_tensor_slices(worker_devices)
704 expected_values = worker_devices
/external/tensorflow/tensorflow/python/tpu/
Dtpu_embedding_v2.py1304 tpu_device = self._strategy.extended.worker_devices[replica_id]
1655 for tpu_device in strategy.extended.worker_devices:
Dtpu_embedding_v2_test.py754 device = strategy.extended.worker_devices[core_id]

12