Home
last modified time | relevance | path

Searched refs:device_dict (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/python/tpu/
Dtpu_system_metadata.py77 device_dict = collections.defaultdict(list)
119 device_dict[spec.task].append(spec.device_index)
125 [len(core_ids) for core_ids in device_dict.values()])
153 num_hosts=len(device_dict),
/external/tensorflow/tensorflow/python/distribute/
Dmirrored_strategy.py113 device_dict = {}
119 if d_spec.job not in device_dict:
120 device_dict[d_spec.job] = []
123 while len(device_dict[d_spec.job]) <= d_spec.task:
124 device_dict[d_spec.job].append([])
126 device_dict[d_spec.job][d_spec.task].append(d)
128 return device_dict
155 device_dict = _group_device_list(devices)
157 for _, devices_in_task in device_dict.items():
402 device_dict = _group_device_list(devices)
[all …]
/external/tensorflow/tensorflow/python/distribute/cluster_resolver/tpu/
Dtpu_cluster_resolver.py139 def _verify_and_return_same_core_count(device_dict): argument
142 {len(core_ids) for core_ids in device_dict.values()})
145 'should never happen. Devices: {}'.format(device_dict))
Dtpu_cluster_resolver_test.py590 device_dict, num_cores =\
593 self.assertEqual(device_dict, {})
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Ddevice_util_test.cc162 auto device_dict = builder.getDictionaryAttr( in TEST() local
165 (*module_ref)->setAttr("tf.devices", device_dict); in TEST()