| 852 | } |
| 853 | |
| 854 | void AddNodeAttr(StringPiece name, const AttrValue& value, NodeDef* node_def) { |
| 855 | node_def->mutable_attr()->insert( |
| 856 | AttrValueMap::value_type(string(name), value)); |
| 857 | } |
| 858 | |
| 859 | void AddNodeAttr(StringPiece name, AttrValue&& value, NodeDef* node_def) { |
| 860 | (*node_def->mutable_attr())[string(name)] = std::move(value); |
no test coverage detected