vectorized_gelu Class — pytorch Architecture
Architecture documentation for the vectorized_gelu class in Gelu.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cpu/Gelu.h lines 76–80
template<typename T, std::enable_if_t<c10::is_reduced_floating_point_v<T>, bool> = true>
vec::Vectorized<T> vectorized_gelu(vec::Vectorized<T> x) {
auto [x0, x1] = at::vec::convert_to_float<T>(x);
return at::vec::convert_from_float<T>(vectorized_gelu(x0), vectorized_gelu(x1));
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free