W3cubDocs

/PyTorch 2.9

DeQuantStub

class torch.ao.quantization.DeQuantStub(qconfig=None) [source]

Dequantize stub module, before calibration, this is same as identity, this will be swapped as nnq.DeQuantize in convert.

Parameters

qconfig (Optional[Any]) – quantization configuration for the tensor, if qconfig is not provided, we will get qconfig from parent modules

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.ao.quantization.DeQuantStub.html