Linear¶
- class torch.ao.nn.qat.Linear(in_features, out_features, bias=True, qconfig=None, device=None, dtype=None)[原始碼][原始碼]¶
一個附加了權重 FakeQuantize 模組的線性模組,用於量化感知訓練。
我們採用與 torch.nn.Linear 相同的介面,請參閱 https://pytorch.dev.org.tw/docs/stable/nn.html#torch.nn.Linear 以獲取文件。
與 torch.nn.Linear 類似,FakeQuantize 模組初始化為預設值。
- 變數
weight (torch.Tensor) – 權重的 fake quant 模組