cubic_interp1d Class — pytorch Architecture
Architecture documentation for the cubic_interp1d class in UpSample.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/UpSample.h lines 424–435
template <typename scalar_t>
inline scalar_t cubic_interp1d(
scalar_t x0,
scalar_t x1,
scalar_t x2,
scalar_t x3,
scalar_t t) {
scalar_t coeffs[4];
get_cubic_upsample_coefficients<scalar_t>(coeffs, t);
return x0 * coeffs[0] + x1 * coeffs[1] + x2 * coeffs[2] + x3 * coeffs[3];
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free