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

Function InferOpAttributes

tensorflow/cc/framework/cc_op_gen.cc:492–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492void InferOpAttributes(
493 const OpDef& op_def,
494 std::unordered_map<string, string>* inferred_input_attrs) {
495 for (int i = 0; i < op_def.input_arg_size(); ++i) {
496 const auto& arg(op_def.input_arg(i));
497 InferArgAttributes(arg, inferred_input_attrs);
498 }
499}
500
501bool ArgIsList(const OpDef::ArgDef& arg) {
502 return !arg.type_list_attr().empty() || !arg.number_attr().empty();

Callers 1

OpInfoMethod · 0.85

Calls 1

InferArgAttributesFunction · 0.85

Tested by

no test coverage detected