transpose Class — pytorch Architecture
Architecture documentation for the transpose class in utils.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cpu/utils.h lines 149–156
template <typename T>
inline void transpose(int64_t M, int64_t N, const T* src, int64_t ld_src, T* dst, int64_t ld_dst) {
for (int64_t j = 0; j < N; j++) {
for (int64_t i = 0; i < M; i++) {
dst[j * ld_dst + i] = c10::load(&(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