QConvAddInt8 Class — pytorch Architecture
Architecture documentation for the QConvAddInt8 class in qconv.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/cpu/qconv.cpp lines 2128–2155
class QConvAddInt8 final {
public:
static Tensor run(
Tensor act,
Tensor accum,
const c10::intrusive_ptr<ConvPackedParamsBase<kSpatialDim>>& packed_weight,
double output_scale,
int64_t output_zero_point) {
#if AT_MKLDNN_ENABLED() || !defined(STRIP_ERROR_MESSAGES)
auto& ctx = at::globalContext();
#endif
#if AT_MKLDNN_ENABLED()
if (ctx.qEngine() == at::QEngine::ONEDNN) {
if (kReluFused) {
return dynamic_cast<PackedConvWeightsOnednn<kSpatialDim>*>(packed_weight.get())->apply_add_relu(
act, accum, output_scale, output_zero_point);
} else {
return dynamic_cast<PackedConvWeightsOnednn<kSpatialDim>*>(packed_weight.get())->apply_add(
act, accum, output_scale, output_zero_point);
}
}
#endif
TORCH_CHECK(
false,
"Didn't find engine for operation quantized::conv2d_add.",
toString(ctx.qEngine()));
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free