評價此頁

Conv2d#

class torch.ao.nn.qat.Conv2d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros', qconfig=None, device=None, dtype=None)[原始碼]#

一個 Conv2d 模組,附加了用於權重 FakeQuantize 模組,用於量化感知訓練。

我們採用了與 torch.nn.Conv2d 相同的介面,請參閱 https://pytorch.com.tw/docs/stable/nn.html?highlight=conv2d#torch.nn.Conv2d 獲取文件。

torch.nn.Conv2d 類似,FakeQuantize 模組初始化為預設值。

變數

weight_fake_quant – 權重的 fake quant 模組