On this page
QuantStub
class torch.ao.quantization.QuantStub(qconfig=None)
[source]-
Quantize stub module, before calibration, this is same as an observer, it will be swapped as
nnq.Quantize
inconvert
.- Parameters
-
qconfig – quantization configuration for the tensor, if qconfig is not provided, we will get qconfig from parent modules
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.ao.quantization.QuantStub.html