Home
last modified time | relevance | path

Searched refs:body_func (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/core/common_runtime/
Dlower_while_op_test.cc72 AttrValue body_func; in TEST() local
73 body_func.mutable_func()->set_name("XTimesTwo"); in TEST()
79 .Attr("body", body_func) in TEST()
194 AttrValue body_func; in TEST() local
195 body_func.mutable_func()->set_name("XTimesTwo"); in TEST()
201 .Attr("body", body_func) in TEST()
299 AttrValue body_func; in TEST() local
300 body_func.mutable_func()->set_name("XTimesTwo"); in TEST()
308 .Attr("body", body_func) in TEST()
423 AttrValue body_func; in TEST() local
[all …]
Dlower_functional_ops_test.cc160 AttrValue body_func; in TEST() local
161 body_func.mutable_func()->set_name("WhileWithIfBody"); in TEST()
166 .Attr("body", body_func) in TEST()
210 NameAttrList body_func; in IfWithWhileThen() local
211 body_func.set_name("XTimesTwo"); in IfWithWhileThen()
229 {"body", body_func}, in IfWithWhileThen()
Dexecutor_test.cc624 AttrValue body_func; in BM_WhileLoopHelper() local
625 body_func.mutable_func()->set_name("XPlusOne"); in BM_WhileLoopHelper()
631 .Attr("body", body_func) in BM_WhileLoopHelper()
/external/tensorflow/tensorflow/python/framework/
Dpy_context_manager_pybind.cc27 py::handle body_func) { in TestPyContextManager() argument
36 PyObject_CallFunctionObjArgs(body_func.ptr(), cm.var(), nullptr)); in TestPyContextManager()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dfunction_utils.cc222 const FunctionDef* body_func = in IsNodeStateful() local
226 (body_func != nullptr && in IsNodeStateful()
227 !IsFunctionStateful(library, *body_func, skip_assert))) { in IsNodeStateful()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla_util.cc260 const FunctionDef* body_func = lookup_fld->Find(body_attr.name()); in PropagateConstIntoWhileNode() local
261 if (!body_func) { in PropagateConstIntoWhileNode()
277 if (i >= body_func->signature().output_arg_size()) { in PropagateConstIntoWhileNode()
280 const OpDef_ArgDef& output_arg = body_func->signature().output_arg(i); in PropagateConstIntoWhileNode()
281 auto output_arg_input = body_func->ret().find(output_arg.name()); in PropagateConstIntoWhileNode()
282 if (output_arg_input == body_func->ret().end()) { in PropagateConstIntoWhileNode()
287 const OpDef_ArgDef& input_arg = body_func->signature().input_arg(i); in PropagateConstIntoWhileNode()
/external/tensorflow/tensorflow/core/kernels/data/
Dcaptured_function.cc432 const FunctionDef* body_func = in IsNodeStateful() local
437 if (body_func != nullptr) { in IsNodeStateful()
438 TF_RETURN_IF_ERROR(IsFunctionStateful(library, *body_func)); in IsNodeStateful()
/external/tensorflow/tensorflow/compiler/jit/
Dextract_outside_compilation_pass.cc590 NameAttrList body_func; in PostprocessLiftedArgsForWhile() local
591 TF_RETURN_IF_ERROR(GetNodeAttr(n->def(), "body", &body_func)); in PostprocessLiftedArgsForWhile()
592 const FunctionDef* body_function_def = fld->Find(body_func.name()); in PostprocessLiftedArgsForWhile()
602 AttrSlice(&body_func.attr()), fld, in PostprocessLiftedArgsForWhile()
651 fld->UniqueFunctionName(absl::StrCat(body_func.name(), "_lifted_arg_")); in PostprocessLiftedArgsForWhile()
658 &body_func, n, fld)); in PostprocessLiftedArgsForWhile()
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Dencapsulate_tpu_computations_pass.cc1796 NameAttrList body_func; in FindArgsToLiftForWhileNode() local
1797 TF_RETURN_IF_ERROR(GetNodeAttr(while_node->def(), "body", &body_func)); in FindArgsToLiftForWhileNode()
1798 const FunctionDef* body_fdef = fld->Find(body_func.name()); in FindArgsToLiftForWhileNode()
1800 return errors::Internal("Cannot find body function ", body_func.name(), in FindArgsToLiftForWhileNode()
1805 *body_fdef, AttrSlice(&body_func.attr()), fld, &body_fbody)); in FindArgsToLiftForWhileNode()