線性¶
- class torch.ao.nn.qat.dynamic.Linear(in_features, out_features, bias=True, qconfig=None, device=None, dtype=None)[source][source]¶
一個線性模組,附帶用於權重的 FakeQuantize 模組,用於動態量化感知訓練。
我們採用與 torch.nn.Linear 相同的介面,請參閱 https://pytorch.com.tw/docs/stable/nn.html#torch.nn.Linear 獲取文件。
與 torch.nn.Linear 類似,FakeQuantize 模組初始化為預設值。