| 532 | #undef HANDLE_CASE |
| 533 | |
| 534 | Status CheckAttrExists(const NodeDef& node, const string& key) { |
| 535 | if (!HasNodeAttr(node, key)) { |
| 536 | return errors::InvalidArgument("Node '", node.name(), "' lacks '", key, |
| 537 | "' attr: ", node.ShortDebugString()); |
| 538 | } |
| 539 | return Status::OK(); |
| 540 | } |
| 541 | |
| 542 | Status CheckAttrsExist(const NodeDef& node, absl::Span<const string> keys) { |
| 543 | for (const string& key : keys) { |