Searched refs:available_devices (Results 1 – 8 of 8) sorted by relevance
168 available_devices = _get_available_devices()169 available_devices = [170 _normalize_device_name(name) for name in available_devices173 if device not in available_devices:178 available_devices))
34 available_devices = [38 if '/gpu:%d' % (gpus - 1) not in available_devices:
1098 const absl::flat_hash_set<int64>& available_devices, in DevicesForShardingInternal() argument1102 DevicesForShardingInternal(subsharding, available_devices, used); in DevicesForShardingInternal()1108 for (int64 device : available_devices) { in DevicesForShardingInternal()1118 [&](int64 device) { return available_devices.contains(device); })); in DevicesForShardingInternal()1126 const HloSharding& sharding, const std::vector<int64>& available_devices) { in DevicesForSharding() argument1128 for (int64 device : available_devices) { in DevicesForSharding()1134 for (int64 device : available_devices) { in DevicesForSharding()
185 const HloSharding& sharding, const std::vector<int64>& available_devices);
73 std::vector<DeviceAttributes> available_devices; in RunAndFetch() local74 TF_ASSERT_OK(session->ListDevices(&available_devices)) in RunAndFetch()79 absl::c_any_of(available_devices, [](const DeviceAttributes& device) { in RunAndFetch()
112 std::vector<DeviceAttributes> available_devices; local113 TF_ASSERT_OK(session->ListDevices(&available_devices))118 absl::c_any_of(available_devices, [](const DeviceAttributes& device) { in __anon22d4da570102()
584 std::vector<DeviceAttributes> available_devices; in RunAndFetch() local585 TF_ASSERT_OK(session->ListDevices(&available_devices)) in RunAndFetch()590 absl::c_any_of(available_devices, [](const DeviceAttributes& device) { in RunAndFetch()
158 self.available_devices = self.list_devices_available()264 if self.available_devices.get(device_type, 0) < number: