| 107 | // and nodes have a small number of attributes. |
| 108 | template <class T> |
| 109 | Status Get(StringPiece attr_name, T* value) const { |
| 110 | // Common attributes are stored in AttrVecs. This Get() template |
| 111 | // is specialized for them below. If we end up here, the type must be |
| 112 | // among those that we store in the node_def_. |
| 113 | if (node_def_ == nullptr) { |
| 114 | return errors::NotFound("No attr named'", attr_name, |
| 115 | "' found in AttrBuilder for ", op_name_); |
| 116 | } |
| 117 | return GetNodeAttr(node_def_, attr_name, value); |
| 118 | } |
| 119 | |
| 120 | tensorflow::Fprint128 CacheKey(const StringPiece device); |
| 121 |
no test coverage detected