Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

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