MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AddToCluster

Function AddToCluster

tensorflow/compiler/jit/partially_decluster_pass_test.cc:294–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294void AddToCluster(absl::Span<Node* const> nodes,
295 absl::string_view cluster_name) {
296 for (Node* n : nodes) {
297 n->AddAttr(kXlaClusterAttr, string(cluster_name));
298 }
299}
300
301TEST(PartiallyDeclusterPassTest, DeclusterMustBeConstantNodes) {
302 tensorflow::Scope s = tensorflow::Scope::NewRootScope();

Callers 1

TESTFunction · 0.85

Calls 1

AddAttrMethod · 0.80

Tested by

no test coverage detected