Home
last modified time | relevance | path

Searched refs:node_index_by_name_ (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/utils/
Dgraph_view.cc87 node_index_by_name_.reserve(num_nodes); in GraphView()
111 const int node_index = node_index_by_name_.size(); in AddUniqueNodeInternal()
112 auto it = node_index_by_name_.emplace(node->name(), node_index); in AddUniqueNodeInternal()
138 auto it = node_index_by_name_.find(fanin_id.node()); in CheckAndAddFaninsInternal()
139 if (it == node_index_by_name_.end()) { in CheckAndAddFaninsInternal()
467 node_index_by_name_.reserve(num_nodes); in MutableGraphView()
493 const int node_index = node_index_by_name_.size(); in AddUniqueNodeInternal()
494 auto it = node_index_by_name_.emplace(node->name(), node_index); in AddUniqueNodeInternal()
525 if (!node_index_by_name_.contains(fanin_id.node())) { in CheckFaninsInternal()
556 const int fanin_node_index = node_index_by_name_[fanin_id.node()]; in AddFaninsInternal()
[all …]
Dgraph_view_internal.h312 auto it = node_index_by_name_.find(node_name); in GetNode()
313 if (it == node_index_by_name_.end()) { in GetNode()
320 auto it = node_index_by_name_.find(node_name); in GetNode()
321 if (it == node_index_by_name_.end()) { in GetNode()
332 return node_index_by_name_.contains(node_name); in HasNode()
342 absl::flat_hash_map<absl::string_view, int>().swap(node_index_by_name_); in Reset()
347 absl::flat_hash_map<absl::string_view, int> node_index_by_name_; variable