QuantStub#

class QuantStub(dtype=None, **kwargs)[source]#

Quantized version of QuantStub, will convert input to quantized dtype.

classmethod from_qat_module(qat_module)[source]#

Return a QATModule instance converted from a float Module instance.