- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NumDevices (0.16 sec)
-
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)