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

Method AddInputs

tensorflow/core/common_runtime/lower_case_op.cc:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173Status CaseBuilder::AddInputs() {
174 // Add input data edges.
175 std::vector<const Edge*> edges;
176 TF_RETURN_IF_ERROR(case_op_->input_edges(&edges));
177 // Start at index 1 as the first input is the branch index.
178 for (int i = 1; i < edges.size(); ++i) {
179 const Edge* e = edges[i];
180 TF_RETURN_IF_ERROR(AddInput(e->src(), e->src_output()));
181 }
182 // Add input control edges.
183 for (const Edge* e : case_op_->in_edges()) {
184 if (e->IsControlEdge()) {
185 graph_->AddControlEdge(e->src(), control_predecessor_);
186 }
187 }
188 return Status::OK();
189}
190
191Status CaseBuilder::AddOutputs() {
192 // Construct the call nodes for each branch.

Callers 1

RewriteCaseNodeFunction · 0.45

Calls 7

input_edgesMethod · 0.80
AddInputFunction · 0.50
sizeMethod · 0.45
srcMethod · 0.45
src_outputMethod · 0.45
IsControlEdgeMethod · 0.45
AddControlEdgeMethod · 0.45

Tested by

no test coverage detected