| 1073 | } |
| 1074 | |
| 1075 | void 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 | |
| 1097 | string MakeInternal(const string& fname) { |
| 1098 | auto dot_pos = fname.rfind('.'); |
no test coverage detected