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

Function CreateInput

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

Source from the content-addressed store, hash-verified

283}
284
285ArgumentSpec CreateInput(const OpDef_ArgDef& input_def,
286 const ApiDef::Arg& input_api_def,
287 TypeResolver* type_resolver) {
288 bool iterable = false;
289 Type type = type_resolver->TypeOf(input_def, &iterable);
290 Type var_type =
291 Type::Interface("Operand", "org.tensorflow").add_parameter(type);
292 if (iterable) {
293 var_type = Type::IterableOf(var_type);
294 }
295 return ArgumentSpec(
296 input_api_def.name(),
297 Variable::Create(SnakeToCamelCase(input_api_def.rename_to()), var_type),
298 type, ParseDocumentation(input_api_def.description()), iterable);
299}
300
301AttributeSpec CreateAttribute(const OpDef_AttrDef& attr_def,
302 const ApiDef::Attr& attr_api_def,

Callers 1

CreateMethod · 0.70

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