VmlLog Class — pytorch Architecture
Architecture documentation for the VmlLog class in UnaryOpsKernel.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cpu/UnaryOpsKernel.cpp lines 70–81
template <typename T>
void VmlLog(int64_t N, const T* X, T* Y) {
constexpr int64_t K = Vectorized<T>::size();
at::parallel_for(0, N, K, [=](int64_t begin, int64_t end) {
using VT = at::opmath_type<T>;
vec::map(
[](Vectorized<VT> x_vec) { return x_vec.log(); },
Y + begin,
X + begin,
end - begin);
});
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free