- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for HasModelParallelism (0.36 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h
std::string GetDeviceAliasForHostOfLogicalCore(int core_index); // Returns true if cluster contains model parallelism based on // `num_cores_per_replica_attribute`. Otherwise returns false. bool HasModelParallelism(mlir::tf_device::ClusterOp cluster); // Returns true if the devices list contain any TPU devices bool HasTPUDevice(const mlir::TF::RuntimeDevices& devices);
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/utils/tpu_rewrite_device_util_test.cc
cluster->setAttr(kTopologyAttr, builder.getStringAttr("")); cluster->setAttr(kDeviceAssignmentAttr, builder.getArrayAttr({})); EXPECT_FALSE(HasModelParallelism(cluster)); } TEST(TPURewriteDeviceUtilTest, TestHasModelParallelismTrue) { mlir::MLIRContext context; context.loadDialect<mlir::tf_device::TensorFlowDeviceDialect>();
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
} std::string GetDeviceAliasForHostOfLogicalCore(const int core_index) { return llvm::formatv("{0}_{1}", kTPUReplicatedHost, core_index).str(); } bool HasModelParallelism(mlir::tf_device::ClusterOp cluster) { mlir::IntegerAttr num_cores_per_replica_attr = cluster->getAttrOfType<mlir::IntegerAttr>( tensorflow::kNumCoresPerReplicaAttr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0)