Home
last modified time | relevance | path

Searched refs:device_map (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/core/graph/
Dcostmodel_test.cc84 std::unordered_map<string, const Graph*> device_map; in TEST() local
85 device_map["DummyDevice1"] = graph1.get(); in TEST()
86 device_map["DummyDevice2"] = graph2.get(); in TEST()
88 collector.BuildCostModel(&cost_model_manager, device_map); in TEST()
/external/tensorflow/tensorflow/python/distribute/cluster_resolver/tpu/
Dtpu_cluster_resolver.py124 device_map = collections.defaultdict(list)
131 device_map[host_id].append(core_id)
133 return DeviceDetails(device_map, num_cores)
395 device_details.device_map)
Dtpu_cluster_resolver_test.py567 self.assertEqual(device_details.device_map,
/external/tensorflow/tensorflow/python/grappler/
Dtf_optimizer_wrapper.cc42 std::unordered_map<std::string, tensorflow::DeviceProperties>* device_map) { in DetectDevices() argument
50 tensorflow::DeviceProperties& prop = (*device_map)[device->name()]; in DetectDevices()
/external/tensorflow/tensorflow/core/data/service/
Dauto_shard_rewriter.cc115 std::unordered_map<std::string, tensorflow::DeviceProperties> device_map; in ApplyAutoShardRewrite() local
116 tensorflow::grappler::VirtualCluster cluster(device_map); in ApplyAutoShardRewrite()
/external/chromium-trace/catapult/devil/devil/android/
Dforwarder.py243 device_map = instance._device_to_host_port_map
245 for device_serial_and_port, host_port in device_map.items():
248 del device_map[device_serial_and_port]
/external/tensorflow/tensorflow/compiler/mlir/tfrt/transforms/
Dlower_saved_model.cc121 auto &device_map = hoisted_values_by_block_device[hoist_into_block(value)]; in ReplaceHoistedValues() local
130 auto &item = device_map[device]; in ReplaceHoistedValues()
141 const auto &device_map = block_iter.second; in ReplaceHoistedValues() local
144 for (const auto &device_iter : device_map) { in ReplaceHoistedValues()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dtpu_variable_runtime_reformatting.cc376 auto device_map = devices_attr.getValue(); in HandleReplicateOp() local
378 devices.reserve(device_map.size()); in HandleReplicateOp()
380 for (auto it : device_map) { in HandleReplicateOp()
/external/tensorflow/tensorflow/core/data/
Drewrite_utils.cc118 std::unordered_map<std::string, tensorflow::DeviceProperties> device_map; in ApplyRewrites() local
119 tensorflow::grappler::VirtualCluster cluster(device_map); in ApplyRewrites()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/kernels/
Dtrt_engine_op.cc1062 std::unordered_map<string, tensorflow::DeviceProperties> device_map; in BuildEngine() local
1065 device_map.emplace(ctx->device()->name(), in BuildEngine()
1067 tensorflow::grappler::VirtualCluster cluster(device_map); in BuildEngine()
1337 std::unordered_map<string, tensorflow::DeviceProperties> device_map; in AllocateCalibrationResources() local
1340 device_map.emplace(platform_device_name, in AllocateCalibrationResources()
1342 tensorflow::grappler::VirtualCluster cluster(device_map); in AllocateCalibrationResources()
/external/tensorflow/tensorflow/core/common_runtime/
Dstep_stats_collector.h166 const std::unordered_map<string, const Graph*>& device_map);
Dstep_stats_collector.cc261 const std::unordered_map<string, const Graph*>& device_map) { in BuildCostModel() argument
308 for (const auto& itr : device_map) { in BuildCostModel()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_sharding.cc374 std::map<int64_t, int64_t> device_map; in UsedDevices() local
379 device_map[*unique_device] += 1; in UsedDevices()
386 device_map[*unique_device] += 1; in UsedDevices()
392 return device_map; in UsedDevices()
Dhlo_sharding_util.cc255 const std::map<int64_t, int64_t>& device_map, int64_t* top_count) { in SelectDominantDevice() argument
258 for (auto& it : device_map) { in SelectDominantDevice()
283 std::map<int64_t, int64_t> device_map; in GetMostOccurringDevice() local
288 device_map[it.first] += it.second; in GetMostOccurringDevice()
292 return SelectDominantDevice(device_map, nullptr); in GetMostOccurringDevice()
298 std::map<int64_t, int64_t> device_map; in GetDominantDevice() local
305 device_map[it.first] += it.second; in GetDominantDevice()
312 std::optional<int64_t> device = SelectDominantDevice(device_map, &count); in GetDominantDevice()
Dhlo_sharding_util.h62 const std::map<int64_t, int64_t>& device_map, int64_t* top_count);
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_runtime.cc402 absl::flat_hash_map<xla::GlobalDeviceId, int> device_map; in RunCollectiveOp() local
412 device_map[p.device_id] = pos; in RunCollectiveOp()
432 int participant_num = xla::FindOrDie(device_map, device_id); in RunCollectiveOp()
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_device.c1502 device_map(struct v3dv_device *device, struct v3dv_device_memory *mem) in device_map() function
1743 VkResult result = device_map(device, mem); in v3dv_MapMemory()