| 148 | } |
| 149 | |
| 150 | const OpDef::AttrDef* FindAttr(StringPiece name, const OpDef& op_def) { |
| 151 | for (int i = 0; i < op_def.attr_size(); ++i) { |
| 152 | if (op_def.attr(i).name() == name) { |
| 153 | return &op_def.attr(i); |
| 154 | } |
| 155 | } |
| 156 | return nullptr; |
| 157 | } |
| 158 | |
| 159 | OpDef::AttrDef* FindAttrMutable(StringPiece name, OpDef* op_def) { |
| 160 | for (int i = 0; i < op_def->attr_size(); ++i) { |
no test coverage detected