Home
last modified time | relevance | path

Searched refs:while_node (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/common_runtime/
Dlower_while_op_test.cc68 Node* while_node; in TEST() local
82 .Finalize(root.graph(), &while_node)); in TEST()
84 root.WithOpName("C").WithControlDependencies(Output(while_node)), in TEST()
85 Output(while_node)); in TEST()
86 TF_ASSERT_OK(root.DoShapeInference(while_node)); in TEST()
160 TF_ASSERT_OK(session.Run(feeds, {Output(while_node)}, &out_tensors)); in TEST()
168 TF_ASSERT_OK(session.Run(feeds, {Output(while_node)}, &out_tensors)); in TEST()
190 Node* while_node; in TEST() local
204 .Finalize(graph.get(), &while_node)); in TEST()
295 Node* while_node; in TEST() local
[all …]
Dlower_functional_ops_test.cc157 Node* while_node; in TEST() local
168 .Finalize(root.graph(), &while_node)); in TEST()
169 TF_ASSERT_OK(root.DoShapeInference(while_node)); in TEST()
187 TF_ASSERT_OK(session.Run(feeds, {Output(while_node, 2)}, &out_tensors)); in TEST()
197 TF_ASSERT_OK(session.Run(feeds, {Output(while_node, 2)}, &out_tensors)); in TEST()
Dexecutor_test.cc613 Node* while_node; in BM_WhileLoopHelper() local
634 .Finalize(root.graph(), &while_node)); in BM_WhileLoopHelper()
636 root.WithOpName("C").WithControlDependencies(Output(while_node)), in BM_WhileLoopHelper()
637 Output(while_node)); in BM_WhileLoopHelper()
638 TF_ASSERT_OK(root.DoShapeInference(while_node)); in BM_WhileLoopHelper()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_while.cc463 TF_ASSIGN_OR_RETURN(Node * while_node, AddNodeDefToGraph(while_def, graph)); in FunctionalizeLoop()
471 graph->AddControlEdge(in_edge->src(), while_node); in FunctionalizeLoop()
473 graph->AddEdge(in_edge->src(), in_edge->src_output(), while_node, i); in FunctionalizeLoop()
487 graph->AddControlEdge(while_node, dst); in FunctionalizeLoop()
489 graph->AddEdge(while_node, i, dst, dst_input); in FunctionalizeLoop()
503 frame->parent->nodes.insert(while_node); in FunctionalizeLoop()
Dtf2xla_util.cc251 Status PropagateConstIntoWhileNode(Graph* g, Node* while_node, in PropagateConstIntoWhileNode() argument
259 TF_RETURN_IF_ERROR(GetNodeAttr(while_node->def(), "body", &body_attr)); in PropagateConstIntoWhileNode()
263 " for While node ", while_node->name()); in PropagateConstIntoWhileNode()
265 for (int i = 0; i < while_node->num_inputs(); i++) { in PropagateConstIntoWhileNode()
267 TF_RETURN_IF_ERROR(while_node->input_node(i, &input_node)); in PropagateConstIntoWhileNode()
302 while_node, attr_name, const_input_index_to_node, lookup_fld, fld)); in PropagateConstIntoWhileNode()
Dtf2xla_util_test.cc407 Node* while_node = node_name_index["while"]; in TEST() local
408 ASSERT_NE(while_node, nullptr); in TEST()
409 TF_ASSERT_OK(GetNodeAttr(while_node->def(), "body", &body_fn)); in TEST()
/external/tensorflow/tensorflow/compiler/jit/
Drearrange_function_argument_pass_test.cc154 const Node *while_node = node_name_index.at("while"); in TEST() local
155 ASSERT_NE(while_node, nullptr); in TEST()
156 TF_CHECK_OK(while_node->input_node(0, &input_node)); in TEST()
158 TF_CHECK_OK(while_node->input_node(1, &input_node)); in TEST()
Dcompilability_check_util.cc277 const Node& while_node, FunctionLibraryRuntime* lib_runtime, in IsCompilableWhile() argument
284 while_node, "cond", "while_cond", encapsulating_function, lib_runtime, in IsCompilableWhile()
290 while_node, "body", "while_body", encapsulating_function, lib_runtime, in IsCompilableWhile()
Dcompilability_check_util.h217 bool IsCompilableWhile(const Node& while_node,
Dextract_outside_compilation_pass.cc1477 Node* while_node) { in AddSendLoopPredToLoopCond() argument
1509 absl::StrCat("send_oc_while_cond_", while_node->name()), "XlaSendToHost"); in AddSendLoopPredToLoopCond()
1542 while_node->ClearAttr("cond"); in AddSendLoopPredToLoopCond()
1543 while_node->AddAttr("cond", *loop_cond_func); in AddSendLoopPredToLoopCond()
1736 Node* while_node = host_graph.AddNode(while_def, &s); in BuildHostGraphForWhileNode() local
1738 host_graph.AddEdge(key_placeholder, 0, while_node, 0); in BuildHostGraphForWhileNode()
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Dencapsulate_tpu_computations_pass.cc1763 Node* while_node, FunctionLibraryDefinition* fld) { in FindArgsToLiftForWhileNode() argument
1767 TF_RETURN_IF_ERROR(GetNodeAttr(while_node->def(), "T", &dtypes)); in FindArgsToLiftForWhileNode()
1777 TF_RETURN_IF_ERROR(GetNodeAttr(while_node->def(), "cond", &cond_func)); in FindArgsToLiftForWhileNode()
1781 " for while node ", while_node->DebugString()); in FindArgsToLiftForWhileNode()
1797 TF_RETURN_IF_ERROR(GetNodeAttr(while_node->def(), "body", &body_func)); in FindArgsToLiftForWhileNode()
1801 " for while node ", while_node->DebugString()); in FindArgsToLiftForWhileNode()
2043 void RemoveOutputIdentityNodesForWhileV2(Graph* g, Node* while_node) { in RemoveOutputIdentityNodesForWhileV2() argument
2045 for (const Edge* e : while_node->out_edges()) { in RemoveOutputIdentityNodesForWhileV2()
2056 g->AddControlEdge(while_node, out_edge->dst()); in RemoveOutputIdentityNodesForWhileV2()
2061 g->AddEdge(while_node, e->src_output(), dst, dst_input); in RemoveOutputIdentityNodesForWhileV2()
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dactivity_test.py265 while_node = node.body[1]
267 anno.getanno(while_node, NodeAnno.BODY_SCOPE), ('b',), ('b', 'c'))
269 anno.getanno(while_node, NodeAnno.BODY_SCOPE).parent, ('a', 'b', 'c'),
272 anno.getanno(while_node, NodeAnno.COND_SCOPE), ('b',), ())