Solved by user_123454321 in post #2 
              
              
                class Model(nn.Module):
    def __init__(self):
        super(Model, self).__init__()
        self.conv1 = nn.Sequential( 
                        nn.Conv2d(1, 20, 5), # layer1
                        nn.ReLU())
        self.conv2 = nn.Sequential(
                       nn.Conv2d(20, 20, 5), # layer…