QMulScalar2 Class — pytorch Architecture
Architecture documentation for the QMulScalar2 class in qmul.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/cpu/qmul.cpp lines 360–369
class QMulScalar2 final {
public:
static Tensor run(const Scalar& b, Tensor qa) {
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