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

Method UpdateOutput

tensorflow/core/grappler/utils.cc:154–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void NodeMap::UpdateOutput(const string& node_name,
155 const string& old_output_name,
156 const string& new_output_name) {
157 std::set<NodeDef*>& outputs = outputs_[node_name];
158 outputs.erase(nodes_[NodeName(old_output_name)]);
159 outputs.insert(nodes_[NodeName(new_output_name)]);
160}
161
162string TensorIdToString(const TensorId& tensor_id) {
163 return tensor_id.index() == 0 ? string(tensor_id.node())

Calls 3

NodeNameFunction · 0.85
eraseMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected