checkZeroPoint Class — pytorch Architecture
Architecture documentation for the checkZeroPoint class in AffineQuantizerBase.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/AffineQuantizerBase.cpp lines 17–31
template <typename T>
void checkZeroPoint(const std::string& fn_name, int64_t zero_point) {
TORCH_CHECK(
zero_point <= std::numeric_limits<T>::max(),
fn_name,
" zero_point ",
zero_point,
" is out of range.");
TORCH_CHECK(
zero_point >= std::numeric_limits<T>::min(),
fn_name,
" zero_point ",
zero_point,
" is out of range.");
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free