QSigmoid Class — pytorch Architecture
Architecture documentation for the QSigmoid class in qsigmoid.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/quantized/cpu/qsigmoid.cpp lines 130–143
class QSigmoid final {
public:
static Tensor run(Tensor qx, double output_scale, int64_t output_zero_point) {
#ifdef USE_PYTORCH_QNNPACK
if (at::globalContext().qEngine() == at::QEngine::QNNPACK &&
qx.scalar_type() == kQUInt8) {
return qnnpack_sigmoid(std::move(qx), output_scale, output_zero_point);
}
#endif // USE_PYTORCH_QNNPACK
Tensor qy;
qsigmoid_stub(qx.device().type(), qx, qy, output_scale, output_zero_point);
return qy;
}
};
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free