- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for HasNodeAttr (5.2 sec)
-
tensorflow/compiler/jit/encapsulate_util.cc
std::vector<const Edge*> edges_to_remove; for (const Edge* e : g->source_node()->out_edges()) { if (HasNodeAttr(e->dst()->def(), outside_compilation_attr_name)) { edges_to_remove.push_back(e); } } for (const Edge* e : g->sink_node()->in_edges()) { if (HasNodeAttr(e->src()->def(), outside_compilation_attr_name)) { edges_to_remove.push_back(e); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 15.5K bytes - Viewed (0) -
tensorflow/compiler/jit/extract_outside_compilation_pass.cc
if (!n->IsConstant() || !HasNodeAttr(n->def(), outside_compilation_attr_name)) { continue; } std::vector<const Edge*> out_edges(n->out_edges().begin(), n->out_edges().end()); bool has_non_oc_output = false; for (const Edge* e : out_edges) { if (!e->IsControlEdge() && !HasNodeAttr(e->dst()->def(), outside_compilation_attr_name)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 104.7K bytes - Viewed (0) -
tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc
// Verify step 4: nodes marked with XLA cluster and outside compilation attr. add_node = node_name_image["add"]; EXPECT_NE(add_node, nullptr); EXPECT_TRUE(HasNodeAttr(add_node->def(), "_xla")); EXPECT_TRUE(HasNodeAttr(add_node->def(), "_oc")); // Verify step 5: control edges added. bool has_control_edge_from_recv_at_host = false; for (auto e : add_node->in_edges()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 41K bytes - Viewed (0)