| 875 | } |
| 876 | |
| 877 | Status GetNodeAttr(const Node* node, |
| 878 | const std::string& attr_name, |
| 879 | AttrValue** attr) { |
| 880 | *attr = const_cast<AttrValue*>(node->attrs().Find(attr_name)); |
| 881 | if (*attr == nullptr) { |
| 882 | return tensorflow::errors::Internal( |
| 883 | "Miss attr: ", attr_name ," in the node, ", |
| 884 | node->DebugString()); |
| 885 | } |
| 886 | |
| 887 | return Status::OK(); |
| 888 | } |
| 889 | |
| 890 | Status AddPlaceholder(Graph* g, const std::string& name, |
| 891 | DataType type, Node** target_node) { |
no test coverage detected