评价此页

Linear#

class torch.ao.nn.qat.dynamic.Linear(in_features, out_features, bias=True, qconfig=None, device=None, dtype=None)[源代码]#

一个线性模块,附带用于权重(weight)的FakeQuantize模块,用于动态量化感知训练。

我们采用了与 torch.nn.Linear 相同的接口,文档请参见 https://pytorch.ac.cn/docs/stable/nn.html#torch.nn.Linear

torch.nn.Linear 类似,FakeQuantize 模块被初始化为默认值。