tensorflow/core/tpu/graph_rewrite/tpu_embedding_software_deduplication_rewrite_pass.cc
// Gets the src nodes for the incoming control edges of the node.
Gets the src nodes for the incoming control edges of the node.
Gets the src nodes for the incoming control edges of the node .
std::vector<Node*> GetControlInputNodes(const Node* node) {
  std::vector<Node*> control_inputs;
  for (const Edge* edge : node->in_edges()) {
    if (edge->IsControlEdge()) {
      control_inputs.push_back(edge->src());
    }
  }
  return control_inputs;
}
std :: vector < Node * > GetControlInputNodes ( const Node * node ) { std :: vector < Node * > control_inputs ; for ( const Edge * edge : node -> in_edges ( ) ) { if ( edge -> IsControlEdge ( ) ) { control_inputs . push_back ( edge -> src ( ) ) ; } } return control_inputs ; }
Gets the src nodes for the incoming control edges of the node.
Gets the src nodes for the incoming control edges of the node .