Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow_util.cc44 NodeDef ret_def; in BuildRetvalNode() local
45 ret_def.set_op(kRetValOp); in BuildRetvalNode()
46 ret_def.set_name(absl::StrCat(kRetValOp, index)); in BuildRetvalNode()
47 AddNodeAttr("T", type, &ret_def); in BuildRetvalNode()
48 AddNodeAttr("index", index, &ret_def); in BuildRetvalNode()
49 return AddNodeDefToGraph(ret_def, graph); in BuildRetvalNode()
/external/tensorflow/tensorflow/core/framework/
Dfunction.cc338 const OpDef::ArgDef& ret_def, AttrSlice attrs, in AddReturnNode() argument
341 auto ret_iter = ret_map.find(ret_def.name()); in AddReturnNode()
343 return errors::InvalidArgument("Return ", ret_def.name(), " missing."); in AddReturnNode()
347 TF_RETURN_IF_ERROR(ArgNumType(attrs, ret_def, &is_type_list, &dtypes)); in AddReturnNode()
351 return errors::InvalidArgument("Return ", ret_def.name(), " -> ", in AddReturnNode()
355 return errors::InvalidArgument("Invalid ret types ", ret_def.name(), in AddReturnNode()
361 string name = strings::StrCat(ret_def.name(), "_RetVal"); in AddReturnNode()
372 DataType dtype = ret_def.is_ref() ? MakeRefType(dtypes[i]) : dtypes[i]; in AddReturnNode()
798 for (const OpDef::ArgDef& ret_def : sig.output_arg()) { in InstantiateFunction() local
799 s = helper.AddReturnNode(ret_def, attr_values, fdef.ret(), ints_on_device, in InstantiateFunction()
[all …]
Dfunction.h149 gtl::ArraySlice<std::pair<string, string>> ret_def,
161 gtl::ArraySlice<std::pair<string, string>> ret_def);
166 gtl::ArraySlice<string> ret_def,
172 gtl::ArraySlice<string> ret_def,
/external/tensorflow/tensorflow/core/kernels/
Dpartitioned_function_ops.cc150 for (const OpDef::ArgDef& ret_def : fdef->signature().output_arg()) { in FillOutputDevices() local
152 TF_RETURN_IF_ERROR(ArgNumType(attrs, ret_def, &is_type_list, &dtypes)); in FillOutputDevices()
/external/tensorflow/tensorflow/compiler/jit/
Dextract_outside_compilation_pass.cc537 NodeDef ret_def; in AddMatchingRetvalNode() local
538 TF_RETURN_IF_ERROR(ret_builder.Finalize(&ret_def)); in AddMatchingRetvalNode()
540 Node* ret_node = function_body.graph->AddNode(ret_def, &s); in AddMatchingRetvalNode()
1605 NodeDef ret_def; in RewriteHostWhileLoopCond() local
1606 TF_RETURN_IF_ERROR(ret_builder.Finalize(&ret_def)); in RewriteHostWhileLoopCond()
1607 Node* ret_node = cond_graph->AddNode(ret_def, &s); in RewriteHostWhileLoopCond()
1664 NodeDef ret_def; in RewriteHostWhileLoopBody() local
1665 TF_RETURN_IF_ERROR(ret_builder.Finalize(&ret_def)); in RewriteHostWhileLoopBody()
1667 Node* ret_node = body_graph->AddNode(ret_def, &s); in RewriteHostWhileLoopBody()
Dencapsulate_subgraphs_pass.cc524 NodeDef ret_def; in RecordResult() local
532 Status s = builder.Finalize(&ret_def); in RecordResult()
534 Node* ret = graph_->AddNode(ret_def, &s); in RecordResult()
Dextract_outside_compilation_pass_test.cc755 NodeDef ret_def; in TEST_F() local
760 .Finalize(&ret_def)); in TEST_F()
761 Node *ret_node = g->AddNode(ret_def, &s); in TEST_F()
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/
Dtfr_gen.py1008 for ret_def in op_def.output_arg:
1009 if ret_def.number_attr or ret_def.type_list_attr:
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Dencapsulate_tpu_computations_pass.cc1193 NodeDef ret_def; in MoveTailOutsideCompilationToHost() local
1194 TF_RETURN_IF_ERROR(ret_builder.Finalize(&ret_def)); in MoveTailOutsideCompilationToHost()
1196 Node* ret_node = xla_graph->AddNode(ret_def, &s); in MoveTailOutsideCompilationToHost()