requantize_val Class — pytorch Architecture
Architecture documentation for the requantize_val class in AffineQuantizerBase.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/AffineQuantizerBase.cpp lines 193–202
template <typename SRC_T, typename DST_T>
DST_T requantize_val(
double src_scale,
int64_t src_zero_point,
double dst_scale,
int64_t dst_zero_point,
SRC_T src) {
const auto dq = dequantize_val<SRC_T>(src_scale, src_zero_point, src);
return quantize_val<DST_T>(dst_scale, dst_zero_point, dq);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free