Searched refs:nodes_to_visit (Results 1 – 2 of 2) sorted by relevance
95 std::queue<string> nodes_to_visit; in GetReachableNodesAndVariables() local97 nodes_to_visit.push(GetNodeNameFromTensorName(output_tensor_name)); in GetReachableNodesAndVariables()100 while (!nodes_to_visit.empty()) { in GetReachableNodesAndVariables()101 const string node_name = nodes_to_visit.front(); in GetReachableNodesAndVariables()102 nodes_to_visit.pop(); in GetReachableNodesAndVariables()112 nodes_to_visit.push(GetNodeNameFromTensorName(input_tensor_name)); in GetReachableNodesAndVariables()
277 std::vector<Node*> nodes_to_visit; in ForEachNode() local278 nodes_to_visit.push_back(root_); in ForEachNode()280 while (pos < nodes_to_visit.size()) { in ForEachNode()281 Node* node = nodes_to_visit[pos++]; in ForEachNode()282 if (node->left() != nullptr) nodes_to_visit.push_back(node->left()); in ForEachNode()283 if (node->right() != nullptr) nodes_to_visit.push_back(node->right()); in ForEachNode()