check_both_inf Class — pytorch Architecture
Architecture documentation for the check_both_inf 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 294–300
template <typename T>
bool check_both_inf(T x, T y) {
if constexpr (std::is_floating_point_v<T>) {
return std::isinf(x) && std::isinf(y);
}
return false;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free