C10_HOST_DEVICE Class — pytorch Architecture
Architecture documentation for the C10_HOST_DEVICE class in ceil_div.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/ceil_div.h lines 10–13
template <typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
C10_ALWAYS_INLINE C10_HOST_DEVICE T ceil_div(T a, T b) {
return (a + b - 1) / b;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free