log2 Class — pytorch Architecture
Architecture documentation for the log2 class in vec_base.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/cpu/vec/vec_base.h lines 582–592
template <
typename complex_t_log2 = T,
typename std::enable_if_t<c10::is_complex<complex_t_log2>::value, int> =
0>
Vectorized<T> log2() const {
// complex_t_log2 is for SFINAE and clarity. Make sure it is not changed.
static_assert(
std::is_same_v<complex_t_log2, T>, "complex_t_log2 must be T");
const T log_2 = T(std::log(2.0));
return Vectorized(map(std::log)) / Vectorized(log_2);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free