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

Function FinishFiles

tensorflow/cc/framework/cc_op_gen.cc:1075–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073}
1074
1075void FinishFiles(bool internal, WritableFile* h, WritableFile* cc,
1076 const string& op_header_guard) {
1077 const string footer = internal ? R"footer(} // namespace internal
1078} // namespace ops
1079} // namespace tensorflow
1080)footer"
1081 :
1082 R"footer(/// @}
1083
1084} // namespace ops
1085} // namespace tensorflow
1086)footer";
1087
1088 TF_CHECK_OK(h->Append(footer));
1089 TF_CHECK_OK(
1090 h->Append(strings::StrCat("\n#endif ", "// ", op_header_guard, "\n")));
1091 TF_CHECK_OK(cc->Append(footer));
1092
1093 TF_CHECK_OK(cc->Close());
1094 TF_CHECK_OK(h->Close());
1095}
1096
1097string MakeInternal(const string& fname) {
1098 auto dot_pos = fname.rfind('.');

Callers 1

WriteCCOpsFunction · 0.85

Calls 3

StrCatFunction · 0.50
AppendMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected