- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 28 for ParsedName (0.16 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/canonicalize_compile_and_replicate_attributes.cc
op->setAttr(tensorflow::kCompileDeviceTypeAttr, builder.getStringAttr(tensorflow::kEmptyDevice)); return mlir::WalkResult::advance(); } tensorflow::DeviceNameUtils::ParsedName parsed_name; tensorflow::DeviceNameUtils::ParseFullOrLocalName(device_attr.getValue(), &parsed_name); auto device_type = builder.getStringAttr(parsed_name.type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.5K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_context.h
// Find and return a function record added by its name. virtual core::RefCountPtr<FunctionRecord> FindRecord( const string& name) const = 0; // Return the ParsedName of Host CPU device. virtual const DeviceNameUtils::ParsedName& HostCPUParsedName() const = 0; virtual const string& HostCPUName() const = 0; // Configure soft device placement policy. virtual void SetAllowSoftPlacement(bool enable) = 0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 06 08:34:00 UTC 2023 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc
if (auto attr = func.getArgAttrOfType<StringAttr>(arg.getArgNumber(), kFuncDeviceAttr)) { std::string device = attr.getValue().str(); tensorflow::DeviceNameUtils::ParsedName parsed_name; if (!tensorflow::DeviceNameUtils::ParseFullName(device, &parsed_name)) { return read->emitOpError() << "invalid device '" << device << "'"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc
const std::string attrKey = "T"; for (const Node* node : graph.nodes()) { if (node->type_string() == nodeType) { auto device_name = node->assigned_device_name(); DeviceNameUtils::ParsedName device; if (DeviceNameUtils::ParseFullName(device_name, &device) && device.has_job && device.job == jobType) { for (const auto& attr : node->attrs()) { auto attr_key = attr.first;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 12:22:33 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
constexpr char kTPUReplicatedHost[] = "TPU_REPLICATED_HOST"; constexpr char kBadIntArrayElementMsg[] = "bad '{0}' attribute at index {1}, not an int"; using ParsedDevice = DeviceNameUtils::ParsedName; using ParsedDevices = llvm::ArrayRef<DeviceNameUtils::ParsedName>; namespace { // Find matching devices in `devices` based on pattern `spec`. llvm::SmallVector<ParsedDevice, 8> FindMatchingDevices( ParsedDevices devices, const ParsedDevice& spec) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
} result.emplace(std::move(per_device_outputs)); return result; } std::vector<std::string> ParallelDevice::SummarizeDeviceNames() const { std::vector<DeviceNameUtils::ParsedName> parsed_components( underlying_devices_.size()); for (int component_index = 0; component_index < underlying_devices_.size(); ++component_index) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 07:47:20 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc
} else { device = alias.getDefiningOp()->getAttrOfType<StringAttr>(kDeviceAttr); } if (!device) return false; tensorflow::DeviceNameUtils::ParsedName parsed_device; if (!tensorflow::DeviceNameUtils::ParseFullName(device.getValue().str(), &parsed_device)) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h
// replica_device_ids: 3 // replica_device_ids: 7 // } // } absl::StatusOr<TPUDeviceAssignment> GetTPUCompilationAndExecutionDevices( llvm::ArrayRef<DeviceNameUtils::ParsedName> devices, int num_replicas, int num_cores_per_replica, llvm::StringRef topology_attr, llvm::ArrayRef<int64_t> device_assignment_attr);
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/c/eager/dlpack.cc
DLDevice GetDlContext(TFE_TensorHandle* h, TF_Status* status) { DLDevice ctx; const char* device_name = tensorflow::unwrap(h)->BackingDeviceName(&status->status); DeviceNameUtils::ParsedName parsed_name; tensorflow::DeviceNameUtils::ParseFullName(device_name, &parsed_name); std::string device_type = parsed_name.type; int device_id = 0; if (parsed_name.has_id) { device_id = parsed_name.id;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 12.8K bytes - Viewed (0) -
tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc
string name; // Only consider nodes being compiled. if (!TryGetNodeAttr(n->attrs(), kXlaClusterIdAttr, &name)) continue; // Early return for any node with a device that is not a CPU or GPU. DeviceNameUtils::ParsedName parsed; if (DeviceNameUtils::ParseFullName(n->requested_device(), &parsed)) { if (parsed.type != DEVICE_CPU && parsed.type != DEVICE_GPU) { return false; } } } return true; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 15.1K bytes - Viewed (0)