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