onnxruntime/core/providers/cpu/tensor/transpose.cc
size_t ComputeOffset(const std::vector<int64_t>& index, const std::vector<size_t>& stride, int64_t num_axes) {
  size_t offset = 0;
  for (int64_t j = 0; j < num_axes; ++j) {
    offset += index[j] * stride[j];
  }
  return offset;
}
// ComputeOffset: compute offset into a tensor. This is essentially the dot-product of
// index and stride, restricted to the specified number of axes.
compute offset into a tensor. This is essentially the dot-product of
index and stride, restricted to the specified number of axes.
compute offset into a tensor . This is essentially the dot - product of index and stride restricted to the specified number of axes .
size_t ComputeOffset(const std::vector<int64_t>& index, const std::vector<size_t>& stride, int64_t num_axes) {
  size_t offset = 0;
  for (int64_t j = 0; j < num_axes; ++j) {
    offset += index[j] * stride[j];
  }
  return offset;
}
size_t ComputeOffset ( const std :: vector < int64_t > & index , const std :: vector < size_t > & stride , int64_t num_axes ) { size_t offset = 0 ; for ( int64_t j = 0 ; j < num_axes ; ++ j ) { offset += index [ j ] * stride [ j ] ; } return offset ; }
ComputeOffset: compute offset into a tensor.
ComputeOffset : compute offset into a tensor .