uniform_int Class — pytorch Architecture
Architecture documentation for the uniform_int class in TransformationHelper.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/core/TransformationHelper.h lines 78–81
template<typename T, typename V>
C10_HOST_DEVICE inline std::enable_if_t<std::is_floating_point_v<T>, T>uniform_int(V val) {
return static_cast<T>(val % static_cast<uint64_t>((1ULL << std::numeric_limits<T>::digits) + 1));
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free