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

Function FillAttrMap

tensorflow/core/framework/op_def_util.cc:488–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486
487typedef std::unordered_map<string, const OpDef::AttrDef*> AttrMap;
488void FillAttrMap(const OpDef& op_def, AttrMap* attr_map) {
489 for (const auto& attr : op_def.attr()) {
490 (*attr_map)[attr.name()] = &attr;
491 }
492}
493
494// Add a comma to *s every call but the first (*add_comma should be
495// initialized to false).

Callers 3

OpDefCompatibleFunction · 0.85

Calls 2

attrMethod · 0.80
nameMethod · 0.65

Tested by

no test coverage detected