transpose_mxn Class — pytorch Architecture
Architecture documentation for the transpose_mxn class in vec_base.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec_base.h lines 1502–1515
template <typename T>
inline void transpose_mxn(
const T* src,
int64_t ld_src,
T* dst,
int64_t ld_dst,
int M,
int N) {
for (int i = 0; i < M; i++) {
for (int j = 0; j < N; j++) {
dst[j * ld_dst + i] = src[i * ld_src + j];
}
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free