Home / Class/ checkZeroPoint Class — pytorch Architecture

checkZeroPoint Class — pytorch Architecture

Architecture documentation for the checkZeroPoint class in AffineQuantizer.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/quantized/AffineQuantizer.cpp lines 58–72

template <typename T>
void checkZeroPoint(const char* fn_name, int64_t zero_point) {
  TORCH_CHECK(
      zero_point <= std::numeric_limits<T>::max(),
      fn_name,
      " zero_point ",
      zero_point,
      " is above upper bound.");
  TORCH_CHECK(
      zero_point >= std::numeric_limits<T>::min(),
      fn_name,
      " zero_point ",
      zero_point,
      " is below lower bound.");
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free