local_log2 Class — pytorch Architecture
Architecture documentation for the local_log2 class in vec_test_all_types.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/test/vec_test_all_types.h lines 1250–1256
template <typename T>
std::enable_if_t<is_complex<Complex<T>>::value, Complex<T>> local_log2(Complex<T> x) {
T ret = std::log(x);
T real = ret.real() / std::log(static_cast<T>(2));
T imag = ret.imag() / std::log(static_cast<T>(2));
return Complex<T>(real, imag);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free