• 文档 >
  • 量化 >
  • 量化 API 参考 >
  • Conv2d
快捷键

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)[source][source]

搭载 FakeQuantize 模块的 Conv2d 模块,用于量化感知训练。

我们采用与 torch.nn.Conv2d 相同的接口,请参阅 https://pytorch.org/docs/stable/nn.html?highlight=conv2d#torch.nn.Conv2d 以获取文档。

与 torch.nn.Conv2d 类似,FakeQuantize 模块已初始化为默认值。

变量:

weight_fake_quant – 伪量化权重模块


© 版权所有 PyTorch 贡献者。

使用 Sphinx 构建,主题由 Read the Docs 提供。

文档

查看 PyTorch 的全面开发者文档

查看文档

教程

深入了解初学者和高级开发者的教程

查看教程

资源

查找开发资源并获得您的疑问解答

查看资源