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

Method BuildLoweredCaseOutput

tensorflow/core/common_runtime/lower_case_op.cc:254–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254Status CaseBuilder::BuildLoweredCaseOutput() {
255 // If outputs are empty, it means that we might have only output control
256 // edges (already connected to the `branch_executed_node`). Furthermore it's
257 // illegal to have an IdentityN with empty inputs.
258 //
259 // We still must keep lowered Case node as a valid source of control edges,
260 // because it might be a part of function control output set.
261 NodeBuilder builder = keep_node_fetchable_ && !outputs_.empty()
262 ? NodeBuilder(name_, "IdentityN").Input(outputs_)
263 : NodeBuilder(name_, "NoOp");
264 return builder.Device(case_op_->requested_device())
265 .ControlInput(branch_executed_node_)
266 .Finalize(graph_, &lowered_case_output_);
267}
268
269} // namespace
270

Callers

nothing calls this directly

Calls 5

NodeBuilderClass · 0.50
emptyMethod · 0.45
InputMethod · 0.45
FinalizeMethod · 0.45
DeviceMethod · 0.45

Tested by

no test coverage detected