as title shows,datasat is MINST. but i meet the problem that the output of model is null.
the code as follows:
class Model(torch.nn.Module):
    def _init_(self):
        super(Model,self)._init_()
        self.conv1=torch.nn.Sequential(
            torch.nn.Conv2d(1,64,kernel_size=3,stride=1,padding=1),
            torch.nn.ReLU(),
            torch.nn.Conv2d(64,128,kernel_size=3,stride=1,padding=1),
            torch.nn.ReLU(),
            torch.nn.MaxPool2d(stride=2,kernel_size=2))
        self.dense=torch.nn.Sequential(
            torch.nn.Linear(14*14*128,1024),
            torch.nn.ReLU(),
            torch.nn.Dropout(p=0.5),
            torch.nn.Linear(1024,10))
    def forward(self,x):
            x=self.conv1(x)
            x=x.view(-1,14*14*128)
            x=self.dense(x)
            return x

model=Model()
print(model)

the output of model is :
Model()
that’s all. I try to solve it for many times.but no solution. I’m newcomer study on pytorch. thanks for your attention.