| 486 | |
| 487 | typedef std::unordered_map<string, const OpDef::AttrDef*> AttrMap; |
| 488 | void 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). |
no test coverage detected