| 226 | } |
| 227 | |
| 228 | string GetOpDefHasDocStringError(const string& op_name) { |
| 229 | return strings::Printf( |
| 230 | "OpDef for %s has a doc string. " |
| 231 | "Doc strings must be defined in ApiDef instead of OpDef. " |
| 232 | "Please, add summary and descriptions in api_def_%s" |
| 233 | ".pbtxt file instead", |
| 234 | op_name.c_str(), op_name.c_str()); |
| 235 | } |
| 236 | |
| 237 | // Check that OpDef's do not have descriptions and summaries. |
| 238 | // Descriptions and summaries must be in corresponding ApiDefs. |