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

Function CreateOutput

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

Source from the content-addressed store, hash-verified

318}
319
320ArgumentSpec CreateOutput(const OpDef_ArgDef& output_def,
321 const ApiDef::Arg& output_api,
322 TypeResolver* type_resolver) {
323 bool iterable = false;
324 Type type = type_resolver->TypeOf(output_def, &iterable);
325 Type var_type = Type::Class("Output", "org.tensorflow").add_parameter(type);
326 if (iterable) {
327 var_type = Type::ListOf(var_type);
328 }
329 return ArgumentSpec(
330 output_api.name(),
331 Variable::Create(SnakeToCamelCase(output_api.rename_to()), var_type),
332 type, ParseDocumentation(output_api.description()), iterable);
333}
334
335EndpointSpec CreateEndpoint(const OpDef& op_def, const ApiDef& api_def,
336 const ApiDef_Endpoint& endpoint_def) {

Callers 1

CreateMethod · 0.85

Calls 7

ArgumentSpecClass · 0.85
SnakeToCamelCaseFunction · 0.85
ParseDocumentationFunction · 0.85
TypeOfMethod · 0.80
descriptionMethod · 0.80
nameMethod · 0.65
CreateFunction · 0.50

Tested by

no test coverage detected