MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BuildArgNode

Function BuildArgNode

tensorflow/compiler/tf2xla/functionalize_while.cc:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110StatusOr<Node*> BuildArgNode(Graph* graph, DataType type, int index) {
111 const char* const kArgOp = "_Arg";
112 NodeDef arg_def;
113 NodeDefBuilder builder(absl::StrCat(kArgOp, index), kArgOp);
114 builder.Attr("T", type);
115 builder.Attr("index", index);
116 TF_RETURN_IF_ERROR(builder.Finalize(&arg_def));
117 return AddNodeDefToGraph(arg_def, graph);
118}
119
120// Builds a graph for the loop condition.
121Status BuildLoopCondition(const Graph& graph, WhileLoopFrame* frame,

Callers 2

BuildLoopConditionFunction · 0.85
BuildLoopBodyFunction · 0.85

Calls 4

AddNodeDefToGraphFunction · 0.85
StrCatFunction · 0.50
AttrMethod · 0.45
FinalizeMethod · 0.45

Tested by

no test coverage detected