| 888 | } |
| 889 | |
| 890 | Status AddPlaceholder(Graph* g, const std::string& name, |
| 891 | DataType type, Node** target_node) { |
| 892 | // Add a placeholder for 'name' which set by user. |
| 893 | NodeDef def; |
| 894 | def.set_name(name); |
| 895 | def.set_op("Placeholder"); |
| 896 | (*def.mutable_attr())["dtype"].set_type(type); |
| 897 | Status status; |
| 898 | *target_node = g->AddNode(def, &status); |
| 899 | return status; |
| 900 | } |
| 901 | |
| 902 | Status CreateRestoreAllNode(const std::string& name, |
| 903 | const std::string& op_name, |
no test coverage detected