pytorch / 1 / generated / torch.quantization.dequantstub.html

DeQuantStub

class torch.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 – 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/1.13/generated/torch.quantization.DeQuantStub.html