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

Function NodeNameInValues

tensorflow/core/graph/graph_constructor.cc:497–503  ·  view source on GitHub ↗

This could be expensive but we don't expect to call it often, if at all (only if there are multiple nodes in g_ with the same name)

Source from the content-addressed store, hash-verified

495// This could be expensive but we don't expect to call it often, if at all (only
496// if there are multiple nodes in g_ with the same name)
497bool NodeNameInValues(const std::map<TensorId, TensorId>& input_map,
498 const StringPiece& node_name) {
499 for (auto iter = input_map.begin(); iter != input_map.end(); ++iter) {
500 if (iter->second.first == node_name) return true;
501 }
502 return false;
503}
504
505bool NodeNameInValues(const std::vector<string>& control_dependencies,
506 const StringPiece& node_name) {

Callers 1

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected