QMulScalar Class — pytorch Architecture
Architecture documentation for the QMulScalar class in qmul.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/cpu/qmul.cpp lines 348–357
class QMulScalar final {
public:
static Tensor run(Tensor qa, const Scalar& b) {
TORCH_CHECK(qa.qscheme() == kPerTensorAffine ||
qa.qscheme() == kPerTensorSymmetric,
"Only per tensor quantization is supported in Mul.");
auto qc = at::empty_like(qa, qa.suggest_memory_format());
return _mul_scalar_out<ReLUFused>(qc, qa, b);
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free