upsample_increment_value_bounded Class — pytorch Architecture
Architecture documentation for the upsample_increment_value_bounded class in UpSample.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/UpSample.h lines 383–394
template <typename scalar_t>
void upsample_increment_value_bounded(
scalar_t* data,
int64_t width,
int64_t height,
int64_t x,
int64_t y,
scalar_t value) {
int64_t access_x = std::max(std::min(x, width - 1), static_cast<int64_t>(0));
int64_t access_y = std::max(std::min(y, height - 1), static_cast<int64_t>(0));
data[access_y * width + access_x] += value;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free