評價此頁

QuantStub#

class torch.ao.quantization.QuantStub(qconfig=None)[source]#

量化存根模組,在校準之前,它與觀察者相同,在 convert 中它將被替換為 nnq.Quantize

引數

qconfig (Optional[QConfig]) – 張量的量化配置,如果未提供 qconfig,我們將從父模組獲取 qconfig。