sgn_impl Class — pytorch Architecture
Architecture documentation for the sgn_impl class in zmath.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cpu/zmath.h lines 155–162
template<typename T>
inline c10::complex<T> sgn_impl (c10::complex<T> z) {
if (z == c10::complex<T>(0, 0)) {
return c10::complex<T>(0, 0);
} else {
return z / zabs(z);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free