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

Method GetNodeByName

tensorflow/core/common_runtime/placer_test.cc:315–319  ·  view source on GitHub ↗

Returns the node in "graph" with the given name. REQUIRES: "graph" was produced by the most recent call to BuildGraph.

Source from the content-addressed store, hash-verified

313 //
314 // REQUIRES: "graph" was produced by the most recent call to BuildGraph.
315 Node* GetNodeByName(const Graph& graph, const string& name) {
316 const auto search = nodes_by_name_.find(name);
317 CHECK(search != nodes_by_name_.end()) << "Unknown node name: " << name;
318 return graph.FindNodeId(search->second);
319 }
320
321 protected:
322 std::vector<std::unique_ptr<Device>> local_devices_;

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
FindNodeIdMethod · 0.45

Tested by

no test coverage detected