QLinearInt8 Class — pytorch Architecture
Architecture documentation for the QLinearInt8 class in qlinear.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/cpu/qlinear.cpp lines 1495–1510
class QLinearInt8 final {
public:
static at::Tensor run(
at::Tensor input,
const c10::intrusive_ptr<LinearPackedParamsBase>& packed_weight,
double output_scale,
int64_t output_zero_point) {
if (ReluFused) {
return packed_weight->apply_relu(
std::move(input), output_scale, output_zero_point);
} else {
return packed_weight->apply(
std::move(input), output_scale, output_zero_point);
}
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free