- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for GetDeviceAliasForLogicalCore (0.32 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_composite_resource_ops.cc
if (!devices) return; if (!devices.value().get(tensorflow::GetDeviceAliasForLogicalCore(0))) return; const auto composite_resource_users = GetResourceOpsUsingCompositeArgsInReplicate(replicate_op); for (auto resource_user : composite_resource_users) { WrapOpInLaunch(builder, resource_user->getLoc(), resource_user, tensorflow::GetDeviceAliasForLogicalCore(0)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 16 17:41:12 UTC 2023 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
builder.setInsertionPointAfter(tpu_copy_with_dynamic_shape_op); // Set the copy op's device to the first TPU. std::string device_str; if (replicated) { device_str = tensorflow::GetDeviceAliasForLogicalCore(0); } else if (failed(tensorflow::GetNonReplicatedTPU0( tpu_copy_with_dynamic_shape_op, &device_str))) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
// placed in logical core 0. // TODO(b/148913020): Remove this constraint once model parallelism is // supported. assert(devices.find(tensorflow::GetDeviceAliasForLogicalCore(0)) ->getSecond() .size() == num_replicas); llvm::SmallVector<std::pair<ValueRange, Type>, 8> new_replicated_inputs; llvm::SmallVector<Value, 8> new_packed_inputs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
devices_by_core.push_back(tpu_devices[replica][core].device); hosts_by_core.push_back(tpu_devices[replica][core].host); } device_attrs.push_back( builder->getNamedAttr(tensorflow::GetDeviceAliasForLogicalCore(core), builder->getStrArrayAttr(devices_by_core))); // For data parallelism, also add replicated host devices, as these are // necessary for outside compilation.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h
llvm::ArrayRef<int64_t> device_assignment_attr); // Virtual device name of the passed logical core. The logical core is the index // of a core within a replica. std::string GetDeviceAliasForLogicalCore(int core_index); // Virtual device name of the host that is associated with the passed logical // core. The logical core is the index of a core within a replica.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 11.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc
if (!devices.has_value()) { return op->emitOpError() << "devices attribute is not present in 'tf.device.replicate' op"; } auto logical_core_name = tensorflow::GetDeviceAliasForLogicalCore(logical_core); auto tpu_replica = devices.value().get(logical_core_name); if (!tpu_replica) { return op->emitOpError() << "requires device ordinal from device " << logical_core_name
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 24 21:01:40 UTC 2023 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
return TPUDeviceAssignment(compilation_device, std::move(devices_and_ids.first), std::move(devices_and_ids.second)); } std::string GetDeviceAliasForLogicalCore(const int core_index) { return llvm::formatv("{0}_{1}", kTPUReplicatedCore, core_index).str(); } std::string GetDeviceAliasForHostOfLogicalCore(const int core_index) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0)