Rate 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 in convert.

Parameters

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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources
Morty Proxy This is a proxified and sanitized view of the page, visit original site.