onnxruntime/core/providers/cpu/tensor/transpose.cc
void IncrementIndex(std::vector<int64_t>& index, const std::vector<int64_t>& upper_bound, int64_t num_axes) {
  for (int64_t k = num_axes - 1; k >= 0; --k) {
    index[k]++;
    if (index[k] < upper_bound[k]) break;
    index[k] = 0;
  }
}
// IncrementIndex: Increment an index into a tensor (in lexicographic ordering), wrapping
// around the specified upper_bound.
Increment an index into a tensor (in lexicographic ordering), wrapping
around the specified upper_bound.
Increment an index into a tensor ( in lexicographic ordering ) wrapping around the specified upper_bound .
void IncrementIndex(std::vector<int64_t>& index, const std::vector<int64_t>& upper_bound, int64_t num_axes) {
  for (int64_t k = num_axes - 1; k >= 0; --k) {
    index[k]++;
    if (index[k] < upper_bound[k]) break;
    index[k] = 0;
  }
}
void IncrementIndex ( std :: vector < int64_t > & index , const std :: vector < int64_t > & upper_bound , int64_t num_axes ) { for ( int64_t k = num_axes - 1 ; k >= 0 ; -- k ) { index [ k ] ++ ; if ( index [ k ] < upper_bound [ k ] ) break ; index [ k ] = 0 ; } }
IncrementIndex: Increment an index into a tensor (in lexicographic ordering), wrapping
around the specified upper_bound.
IncrementIndex : Increment an index into a tensor ( in lexicographic ordering ) wrapping around the specified upper_bound .