MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AddPlaceholder

Function AddPlaceholder

serving/processor/framework/graph_optimizer.cc:890–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
902Status CreateRestoreAllNode(const std::string& name,
903 const std::string& op_name,

Callers 3

AddVersionNodeMethod · 0.70
AddIncrCkptFlagMethod · 0.70

Calls 3

set_opMethod · 0.80
set_nameMethod · 0.45
AddNodeMethod · 0.45

Tested by

no test coverage detected