angle_impl Class — pytorch Architecture
Architecture documentation for the angle_impl class in zmath.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/cpu/zmath.h lines 42–48
template <typename SCALAR_TYPE, typename VALUE_TYPE=SCALAR_TYPE>
inline VALUE_TYPE angle_impl (SCALAR_TYPE z) {
if (at::_isnan(z)) {
return z;
}
return z < 0 ? c10::pi<double> : 0;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free