- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for RuntimeDevices (0.32 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc
TEST(DeviceUtilTest, GetDevicesFromOpNoDevicesAttribute) { mlir::MLIRContext context; mlir::OwningOpRef<mlir::ModuleOp> module_ref = mlir::ModuleOp::create(mlir::UnknownLoc::get(&context)); mlir::TF::RuntimeDevices devices; EXPECT_TRUE(mlir::succeeded(GetDevicesFromOp(*module_ref, &devices))); } TEST(DeviceUtilTest, GetDevicesFromOpBadDevicesAttributeType) { mlir::MLIRContext context;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_structs.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_structs.h" #include <optional> namespace mlir { namespace TF { void RuntimeDevices::AddDevice(const ParsedName& device) { device_names_.push_back(device); } void RuntimeDevices::AddGpuDevice(const ParsedName& device, const GpuDeviceMetadata& metadata) { device_names_.push_back(device);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/device_util.cc
// `tf.devices` and remove this function. mlir::LogicalResult GetDevicesFromOp(mlir::Operation* op, mlir::ArrayAttr array_attr, mlir::TF::RuntimeDevices* devices) { DeviceNameUtils::ParsedName device; for (const auto& kv : llvm::enumerate(array_attr)) { const int idx = kv.index(); auto string_attr = mlir::dyn_cast<mlir::StringAttr>(kv.value());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc
auto cluster = builder.create<mlir::tf_device::ClusterOp>( mlir::UnknownLoc::get(&context), result_types); cluster->setAttr(kDeviceAssignmentAttr, builder.getArrayAttr({})); mlir::TF::RuntimeDevices devices; std::string host_device; EXPECT_TRUE(mlir::failed( GetHostDeviceOutsideComputation(devices, cluster, &host_device))); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 46.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
} bool HasTPUDevice(const mlir::TF::RuntimeDevices& devices) { for (const auto& device : devices.device_names()) { if (device.has_type && device.type == "TPU") return true; } return false; } mlir::LogicalResult GetHostDeviceOutsideCompilationInGenericPipeline( mlir::TF::RuntimeDevices devices, std::string* host_device) { for (const auto& device : devices.device_names()) {
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/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h
// Returns true if the devices list contain any TPU devices bool HasTPUDevice(const mlir::TF::RuntimeDevices& devices); // Returns the host device used for outside compilation in generic pipeline. mlir::LogicalResult GetHostDeviceOutsideCompilationInGenericPipeline( mlir::TF::RuntimeDevices devices, std::string* host_device); // Parses XLA compilation and execution devices from a tf_device.cluster and
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/ir/tf_structs.h
// Tensorflow devices available at runtime with corresponding metadata if it is // available. It's completely valid to have a device without any metadata // attached to it. class RuntimeDevices { using DeviceNameUtils = ::tensorflow::DeviceNameUtils; using ParsedName = ::tensorflow::DeviceNameUtils::ParsedName; public: // Adds a device with and empty metadata. Device can be of any type.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
// cluster to before the cluster. mlir::LogicalResult LiftHeadOutsideCompiledOps( OpBuilder* builder, const mlir::TF::SideEffectAnalysis& side_effect_analysis, const mlir::TF::RuntimeDevices& devices, mlir::tf_device::ClusterOp cluster, std::string* host_device, bool* cluster_updated) { llvm::SmallVector<Operation*, 4> head_outside_compiled_ops =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.td
"SmallVector<unsigned, 4>", "GetLayoutDependentResults", (ins) >, InterfaceMethod< [{Returns the optimal data layout based on the available devices.}], "StringRef", "GetOptimalLayout", (ins "const RuntimeDevices&":$devices) >, InterfaceMethod< [{Updates operation attributes and operands to account for the updated data format. If data format is not supported, must return failure.}],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 30 19:07:07 UTC 2022 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replica_id_to_device_ordinal.cc
if (!tf_dialect) { getOperation().emitError() << "'tf' dialect is not registered"; return signalPassFailure(); } // Get the number of devices per host. int device_num = 0; mlir::TF::RuntimeDevices devices; if (failed(tensorflow::GetDevicesFromOp( getOperation()->getParentOfType<ModuleOp>(), &devices))) return signalPassFailure(); for (const auto& device_name : devices.device_names()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4K bytes - Viewed (0)