Home
last modified time | relevance | path

Searched refs:body_fn (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/cc/framework/
Dwhile_gradients.cc75 BodyGraphBuilderFn body_fn = [](const Scope& scope, in AddForwardLoopCounter() local
85 TF_RETURN_IF_ERROR(BuildWhileLoop(scope, {zero}, cond_fn, body_fn, in AddForwardLoopCounter()
114 BodyGraphBuilderFn body_fn = [](const Scope& scope, in AddBackPropLoopCounter() local
125 scope, {loop_count}, cond_fn, body_fn, frame_name, &outputs, in AddBackPropLoopCounter()
160 BodyGraphBuilderFn body_fn = [while_ctx](const Scope& scope, in AddWhileGradientLoop() local
171 TF_RETURN_IF_ERROR(BuildWhileLoop(scope, grad_inputs, cond_fn, body_fn, in AddWhileGradientLoop()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla_util_test.cc354 NameAttrList cond_fn, body_fn; in TEST() local
356 body_fn.set_name("body"); in TEST()
359 std::initializer_list<Input>{pred, input}, cond_fn, body_fn); in TEST()
388 NameAttrList cond_fn, body_fn; in TEST() local
390 body_fn.set_name("body"); in TEST()
393 std::initializer_list<Input>{pred, input}, cond_fn, body_fn); in TEST()
404 TF_ASSERT_OK(GetNodeAttr(while_node->def(), "body", &body_fn)); in TEST()
405 const FunctionDef* rewritten_body_fn = fld.Find(body_fn.name()); in TEST()
Dfunctionalize_control_flow_test.cc261 NameAttrList cond_fn, body_fn; in TEST() local
262 TF_EXPECT_OK(FindWhileCondAndBody(graph_def, &cond_fn, &body_fn)); in TEST()
270 std::initializer_list<Input>{source}, cond_fn, body_fn); in TEST()
313 InstantiateFunctionForTest(body_fn.name(), library, &result)); in TEST()
413 NameAttrList cond_fn, body_fn; in TEST() local
414 TF_ASSERT_OK(FindWhileCondAndBody(graph_def, &cond_fn, &body_fn)); in TEST()
422 std::initializer_list<Input>{source}, cond_fn, body_fn); in TEST()
451 InstantiateFunctionForTest(body_fn.name(), library, &result)); in TEST()
533 NameAttrList cond_fn, body_fn; in TEST() local
534 TF_EXPECT_OK(FindWhileCondAndBody(graph_def, &cond_fn, &body_fn)); in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dcholesky_expander.cc68 auto body_fn = in CholeskyUnblocked() local
132 ForEachIndex(n, S32, body_fn, {a, l}, "unblocked", builder)); in CholeskyUnblocked()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dqr.cc259 auto body_fn = [&](XlaOp j, absl::Span<const XlaOp> values, in ComputeWYRepresentation() local
302 ForEachIndex(n - 1, S32, body_fn, {w, y, vs, taus}, "wy", builder)); in ComputeWYRepresentation()
/external/tensorflow/tensorflow/python/kernel_tests/
Dwhile_v2_test.py92 def body_fn(i): # pylint: disable=invalid-name function
96 loop = while_loop_v2(lambda i: i < 1, body_fn, [0])
Dcontrol_flow_ops_py_test.py1303 def body_fn(i): function
1308 body=body_fn, loop_vars=[1])
1320 def body_fn(unused_i): function
1325 body=body_fn, loop_vars=[0])
/external/tensorflow/tensorflow/compiler/jit/
Dextract_outside_compilation_pass_test.cc734 NameAttrList body_fn; in TEST_F() local
735 body_fn.set_name("body_fn"); in TEST_F()
738 cond_fn, body_fn); in TEST_F()
/external/tensorflow/tensorflow/python/ops/parallel_for/
Dcontrol_flow_ops_test.py885 def body_fn(t, state, ta): function
906 _, state, ta = control_flow_ops.while_loop(condition_fn, body_fn, [
/external/tensorflow/tensorflow/c/
Dc_api.cc2420 tensorflow::ops::BodyGraphBuilderFn body_fn = in TF_FinishWhileHelper() local
2444 body_fn, params->name, &loop_outputs); in TF_FinishWhileHelper()