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

Method Finalize

tensorflow/core/framework/op_def_builder.cc:636–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636Status OpDefBuilder::Finalize(OpRegistrationData* op_reg_data) const {
637 std::vector<string> errors = errors_;
638 *op_reg_data = op_reg_data_;
639
640 OpDef* op_def = &op_reg_data->op_def;
641 for (StringPiece attr : attrs_) {
642 FinalizeAttr(attr, op_def, &errors);
643 }
644 for (StringPiece input : inputs_) {
645 FinalizeInputOrOutput(input, false, op_def, &errors);
646 }
647 for (StringPiece output : outputs_) {
648 FinalizeInputOrOutput(output, true, op_def, &errors);
649 }
650 for (StringPiece control_output : control_outputs_) {
651 FinalizeControlOutput(control_output, op_def, &errors);
652 }
653 FinalizeDoc(doc_, op_def, &errors);
654
655 if (errors.empty()) return Status::OK();
656 return errors::InvalidArgument(absl::StrJoin(errors, "\n"));
657}
658
659} // namespace tensorflow

Callers 15

ExpectSuccessMethod · 0.45
ExpectOrderedMethod · 0.45
ExpectFailureMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
OpMethod · 0.45
ExpectSuccessMethod · 0.45
ExpectFailuresMethod · 0.45
ExpectInvalidMethod · 0.45
TEST_FFunction · 0.45
MakeOpDefFunction · 0.45
TESTFunction · 0.45

Calls 6

FinalizeAttrFunction · 0.85
FinalizeInputOrOutputFunction · 0.85
FinalizeControlOutputFunction · 0.85
FinalizeDocFunction · 0.85
InvalidArgumentFunction · 0.85
emptyMethod · 0.45

Tested by 15

ExpectSuccessMethod · 0.36
ExpectOrderedMethod · 0.36
ExpectFailureMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
OpMethod · 0.36
ExpectSuccessMethod · 0.36
ExpectFailuresMethod · 0.36
ExpectInvalidMethod · 0.36
TEST_FFunction · 0.36
MakeOpDefFunction · 0.36
TESTFunction · 0.36