tensorflow/compiler/tf2xla/rearrange_function_argument.cc
// Given mapping between original input index and rearranged input index, change
// "index" attribute for _Arg nodes.
Given mapping between original input index and rearranged input index, change
"index" attribute for _Arg nodes.
Given mapping between original input index and rearranged input index change " index " attribute for _Arg nodes .
void RearrangeArgNodes(
    const gtl::InlinedVector<Node*, 4>* arg_nodes,  
    const std::vector<int>& index_mapping) {
  for (int i = 0; i < arg_nodes->size(); i++) {
    Node* n = (*arg_nodes)[i];
    int new_index = index_mapping.at(i);
    n->ClearAttr("index");
    n->AddAttr("index", new_index);
  }
}
void RearrangeArgNodes ( const gtl :: InlinedVector < Node * , 4 > * arg_nodes , const std :: vector < int > & index_mapping ) { for ( int i = 0 ; i < arg_nodes -> size ( ) ; i ++ ) { Node * n = ( * arg_nodes ) [ i ] ; int new_index = index_mapping . at ( i ) ; n -> ClearAttr ( " " ) ; n -> AddAttr ( " " , new_index ) ; } }
Given mapping between original input index and rearranged input index, change
"index" attribute for _Arg nodes.
Given mapping between original input index and rearranged input index change " index " attribute for _Arg nodes .
// non-absl ok