QConvInt8ForBC Class — pytorch Architecture
Architecture documentation for the QConvInt8ForBC class in qconv.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/cpu/qconv.cpp lines 2180–2205
class QConvInt8ForBC final {
public:
static Tensor run(
Tensor act,
const c10::intrusive_ptr<ConvPackedParamsBase<kSpatialDim>>& packed_weight,
torch::List<int64_t> /*stride*/,
torch::List<int64_t> /*padding*/,
torch::List<int64_t> /*dilation*/,
int64_t /*groups*/,
double output_scale,
int64_t output_zero_point) {
if (kReluFused) {
TORCH_WARN_ONCE(
"Arguments [stride, padding, dilation, groups] in ops.quantized.conv" +
std::to_string(kSpatialDim),
"d_relu, have been removed, please update your model to remove these arguments.");
return packed_weight->apply_relu(act, output_scale, output_zero_point);
} else {
TORCH_WARN_ONCE(
"Arguments [stride, padding, dilation, groups] in ops.quantized.conv",
std::to_string(kSpatialDim),
"d, have been removed, please update your model to remove these arguments.");
return packed_weight->apply(act, 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