class Net(Module):
def init(self):
super(Net, self).init()
    self.cnn = Sequential(
        Conv2d(in_channels=1, out_channels=4, kernel_size=3, stride=1),
        ReLU(inplace=True),
        MaxPool2d(kernel_size=3, stride=1),
        Conv2d(in_channels=4, out_channels=4, kernel_size=3, stride=1),
        ReLU(inplace=True),
        MaxPool2d(kernel_size=3, stride=1),
        Linear(in_features=1000, out_features=500),
        ReLU(inplace=True),
        Linear(in_features=500, out_features=250),
        ReLU(inplace=True),
        Linear(in_features=250, out_features=4)
    )

def forward(self, x):
    x = self.cnn(x)
    x = x.view(x.size(0), -1)
    return x

Please tell me what is wrong, I don’t get it.
Error is: RuntimeError: Given groups=1, weight of size [4, 1, 3, 3], expected input[2190, 64, 64, 3] to have 1 channels, but got 64 channels instead