checkQuantizedTensor Class — pytorch Architecture
Architecture documentation for the checkQuantizedTensor class in AffineQuantizer.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/AffineQuantizer.cpp lines 46–56
template <typename T>
void checkQuantizedTensor(const char* fn_name, const Tensor& t) {
TORCH_CHECK(t.is_quantized(), fn_name, " expects a quantized Tensor.");
TORCH_CHECK(
t.scalar_type() == caffe2::TypeMeta::Make<T>(),
fn_name,
" expects a ",
caffe2::TypeMeta::Make<T>(),
" Tensor, got ",
t.scalar_type());
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free