well a strange net
class Matrix(nn.Module):
def init(self):
super(Matrix,self).init()
self.conv1 = nn.Conv2d(1024,1024,3)
self.conv2 = nn.Conv2d(1024,512,5)
self.conv3 = nn.Conv2d(512,256,5)
self.conv4 = nn.Conv2d(256,128,3)
self.conv5 = nn.Conv2d(128,64,5)
self.pool = nn.AvgPool2d(2,2)
self.fc1 = nn.Linear(64,32)
self.fc2 = nn.Linear(32,10)
def forward(self,x):
    x = self.pool(F.relu(self.conv1(x)))
    x = F.relu(self.conv2(x))
    x = F.relu(self.conv3(x))
    x = F.relu(self.conv4(x))
    x = F.relu(self.conv5(x))
    x = x.view(-1,64)
    x = F.relu(self.fc1(x))
    x = self.fc2(x)

net2 = Matrix()
and input data:
h = hadamard(1024)
h = h.reshape([1,1024,32,32])
h = torch.from_numpy(h)
h = h.float()
h = h.cuda()
y = net2(h)
And I find I have not def a optimizer of net2, is this the reason?