| 110 | |
| 111 | template <typename T> |
| 112 | void AddAttr(const string& name, const T& val, NodeDef* ndef) { |
| 113 | SetAttrValue(val, &((*ndef->mutable_attr())[name])); |
| 114 | } |
| 115 | |
| 116 | Status ValidateSignatureWithAttrs(const OpDef& sig, AttrSlice attr_values) { |
| 117 | // attr_values should specify all attrs defined in fdef. |