Returns ApiDefs text representation in multi-line format constructed based on the given op.
| 227 | // Returns ApiDefs text representation in multi-line format |
| 228 | // constructed based on the given op. |
| 229 | string CreateApiDef(const OpDef& op) { |
| 230 | ApiDefs api_defs; |
| 231 | FillBaseApiDef(api_defs.add_op(), op); |
| 232 | |
| 233 | const std::vector<string> multi_line_fields = {"description"}; |
| 234 | string new_api_defs_str = api_defs.DebugString(); |
| 235 | return PBTxtToMultiline(new_api_defs_str, multi_line_fields); |
| 236 | } |
| 237 | |
| 238 | // Creates ApiDef files for any new ops. |
| 239 | // If op_file_pattern is not empty, then also removes .Doc calls from |