mapOrdinary Class — pytorch Architecture
Architecture documentation for the mapOrdinary class in vec256_zarch.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec256/zarch/vec256_zarch.h lines 904–915
template <typename U = T, std::enable_if_t<std::is_same_v<U, float>, int> = 0>
inline Vectorized<T> mapOrdinary(float (*const f)(float)) const {
float a00 = f(_vec0[0]);
float a01 = f(_vec0[1]);
float a02 = f(_vec0[2]);
float a03 = f(_vec0[3]);
float a10 = f(_vec1[0]);
float a11 = f(_vec1[1]);
float a12 = f(_vec1[2]);
float a13 = f(_vec1[3]);
return Vectorized<T>{a00, a01, a02, a03, a10, a11, a12, a13};
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free