overflows Class — pytorch Architecture
Architecture documentation for the overflows class in Utils.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/vulkan/api/Utils.h lines 183–190
template <typename To, typename From>
std::enable_if_t<std::is_floating_point_v<From>, bool> overflows(From f) {
using limit = std::numeric_limits<To>;
if (limit::has_infinity && std::isinf(static_cast<double>(f))) {
return false;
}
return f < limit::lowest() || f > limit::max();
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free