Home / Class/ float Class — pytorch Architecture

float Class — pytorch Architecture

Architecture documentation for the float class in AffineQuantizerBase.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/quantized/AffineQuantizerBase.cpp lines 171–174

template <typename T>
TORCH_API float dequantize_val(double scale, int64_t zero_point, T value) {
  return static_cast<float>(scale) * (value.val_ - static_cast<int32_t>(zero_point));
}

Analyze Your Own Codebase

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

Try Supermodel Free