clip_coordinates Class — pytorch Architecture
Architecture documentation for the clip_coordinates class in GridSampler.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/GridSampler.h lines 56–59
template<typename scalar_t>
static inline scalar_t clip_coordinates(scalar_t in, int64_t clip_limit) {
return std::min(static_cast<scalar_t>(clip_limit - 1), std::max(in, static_cast<scalar_t>(0)));
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free