ConvBnReLU2d
- class torch.ao.nn.intrinsic.qat.ConvBnReLU2d(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups, , , , , ,
A ConvBnReLU2d module is a module fused from Conv2d, BatchNorm2d and ReLU, attached with FakeQuantize modules for weight, used in quantization aware training.
We combined the interface of torch.nn.Conv2d and
torch.nn.BatchNorm2d and torch.nn.ReLU.
Similar to torch.nn.Conv2d, with FakeQuantize modules initialized to default.
weight_fake_quant – fake quant module for weight
Performs forward pass through fused Conv2d, BatchNorm2d, and ReLU.
Creates a QAT module from a floating point module.