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

Function InferArgAttributes

tensorflow/cc/framework/cc_op_gen.cc:480–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480void InferArgAttributes(const OpDef::ArgDef& arg,
481 std::unordered_map<string, string>* inferred_attrs) {
482 if (!arg.type_attr().empty()) {
483 gtl::InsertIfNotPresent(inferred_attrs, arg.type_attr(), arg.name());
484 } else if (!arg.type_list_attr().empty()) {
485 gtl::InsertIfNotPresent(inferred_attrs, arg.type_list_attr(), arg.name());
486 }
487 if (!arg.number_attr().empty()) {
488 gtl::InsertIfNotPresent(inferred_attrs, arg.number_attr(), arg.name());
489 }
490}
491
492void InferOpAttributes(
493 const OpDef& op_def,

Callers 1

InferOpAttributesFunction · 0.85

Calls 3

InsertIfNotPresentFunction · 0.85
nameMethod · 0.65
emptyMethod · 0.45

Tested by

no test coverage detected