QuantStub¶ class torch.ao.quantization.QuantStub(qconfig=None)[來源][來源]¶ 量化 stub 模組,在校準之前,它與 observer 相同,在 convert 期間將被替換為 nnq.Quantize。 引數 qconfig – tensor 的量化配置,如果未提供 qconfig,我們將從父模組獲取 qconfig