- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NumDevices (0.07 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_structs.h
void AddGpuDevice(const ParsedName& device, const GpuDeviceMetadata& metadata); llvm::ArrayRef<ParsedName> device_names() const { return device_names_; } size_t NumDevices() const { return device_names_.size(); } // Returns GPU device metadata if it is available, otherwise returns None. std::optional<GpuDeviceMetadata> GetGpuDeviceMetadata( const ParsedName& device) const;
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/tensorflow/utils/device_util_test.cc
(*module_ref)->setAttr("tf.devices", device_dict); mlir::TF::RuntimeDevices devices; EXPECT_TRUE(mlir::succeeded(GetDevicesFromOp(*module_ref, &devices))); ASSERT_EQ(devices.NumDevices(), 1); ASSERT_EQ(devices.device_names().size(), 1); ASSERT_EQ(DeviceNameUtils::ParsedNameToString(devices.device_names()[0]), "/job:worker/replica:0/task:0/device:CPU:0"); }
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/transforms/layout_optimization.cc
return signalPassFailure(); // If there is no runtime device information and data format is not explicitly // forced, there is nothing to do. if (devices.NumDevices() == 0 && force_data_format_.empty()) return; func.walk([&](LayoutSensitiveInterface layout_sensitive_interface) { // Get desired op data format. StringRef target_data_format = force_data_format_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.3K bytes - Viewed (0)