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

Function CreateOutputWithScope

tensorflow/cc/framework/scope.cc:534–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534Status CreateOutputWithScope(string op_name,
535 absl::Span<const ::tensorflow::Input> inputs,
536 const Scope& scope, Output* output) {
537 TF_RETURN_IF_ERROR(scope.status());
538 const auto unique_name = scope.GetUniqueNameForOp(op_name);
539 auto builder = ::tensorflow::NodeBuilder(unique_name, op_name);
540 for (auto input : inputs) {
541 TF_RETURN_IF_ERROR(scope.status());
542 builder = builder.Input(input.node());
543 }
544 ::tensorflow::Node* ret;
545 scope.UpdateBuilder(&builder);
546 TF_RETURN_IF_ERROR(scope.status());
547 scope.UpdateStatus(builder.Finalize(scope.graph(), &ret));
548 TF_RETURN_IF_ERROR(scope.status());
549 *output = Output(ret, 0);
550 return Status::OK();
551}
552
553} // namespace tensorflow

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 10

GetUniqueNameForOpMethod · 0.80
UpdateBuilderMethod · 0.80
NodeBuilderClass · 0.70
OutputClass · 0.70
statusMethod · 0.45
InputMethod · 0.45
nodeMethod · 0.45
UpdateStatusMethod · 0.45
FinalizeMethod · 0.45
graphMethod · 0.45

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68