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

Function CreateApiDef

tensorflow/core/api_def/update_api_def.cc:229–236  ·  view source on GitHub ↗

Returns ApiDefs text representation in multi-line format constructed based on the given op.

Source from the content-addressed store, hash-verified

227// Returns ApiDefs text representation in multi-line format
228// constructed based on the given op.
229string 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

Callers 2

CreateApiDefsFunction · 0.85
TESTFunction · 0.85

Calls 4

FillBaseApiDefFunction · 0.85
PBTxtToMultilineFunction · 0.85
add_opMethod · 0.45
DebugStringMethod · 0.45

Tested by 1

TESTFunction · 0.68