线性 ¶
- 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.org/docs/stable/nn.html#torch.nn.Linear 以获取文档。
与 torch.nn.Linear 类似,FakeQuantize 模块已初始化为默认值。