Thnx for reply
I tried modifying this code but it gives me error.
    self.layer1 = nn.Sequential(
        nn.Conv2d(1, 16, kernel_size=5, padding=2),
        nn.BatchNorm2d(16),
        nn.ReLU(),
        nn.MaxPool2d(2))

Kindly, can u modify this code so it can be used for deconvolution?