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

Function FinalizeControlOutput

tensorflow/core/framework/op_def_builder.cc:427–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427void FinalizeControlOutput(StringPiece name, OpDef* op_def,
428 std::vector<string>* errors) {
429 StringPiece orig(name);
430
431 // Parse control output name.
432 StringPiece tmp_name;
433 if (!ConsumeControlOutName(&orig, &tmp_name)) {
434 errors->push_back(strings::StrCat("Trouble parsing 'name:'",
435 ControlOutError(orig, op_def->name())));
436 }
437
438 *op_def->add_control_output() = string(tmp_name.data(), tmp_name.size());
439}
440
441int num_leading_spaces(StringPiece s) {
442 size_t i = 0;

Callers 1

FinalizeMethod · 0.85

Calls 7

ConsumeControlOutNameFunction · 0.85
ControlOutErrorFunction · 0.85
nameMethod · 0.65
StrCatFunction · 0.50
push_backMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected