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

Function CreateEndpoint

tensorflow/java/src/gen/cc/op_specs.cc:335–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335EndpointSpec CreateEndpoint(const OpDef& op_def, const ApiDef& api_def,
336 const ApiDef_Endpoint& endpoint_def) {
337 std::vector<string> name_tokens = str_util::Split(endpoint_def.name(), ".");
338 string package;
339 string name;
340 if (name_tokens.size() > 1) {
341 package = name_tokens.at(0);
342 name = name_tokens.at(1);
343 } else {
344 package = "core"; // generate unclassified ops in the 'core' package
345 name = name_tokens.at(0);
346 }
347 return EndpointSpec(package, name,
348 Javadoc::Create(ParseDocumentation(api_def.summary()))
349 .details(ParseDocumentation(api_def.description())));
350}
351
352} // namespace
353

Callers 2

CreateMethod · 0.85

Calls 9

EndpointSpecClass · 0.85
ParseDocumentationFunction · 0.85
descriptionMethod · 0.80
nameMethod · 0.65
SplitFunction · 0.50
CreateFunction · 0.50
sizeMethod · 0.45
atMethod · 0.45
summaryMethod · 0.45

Tested by

no test coverage detected