I install the Torch 1.3.0. I think it is different with my before version. Now I meet two problem about optimal
My network is in Net1.py
class Net(nn.Module):
def init(self):
super(Net, self).init()
self.conv1 = nn.Conv2d(1, 32, 3, 1)
self.conv2 = nn.Conv2d(32, 64, 3, 1)
self.dropout1 = nn.Dropout2d(0.25)
self.dropout2 = nn.Dropout2d(0.5)
self.fc1 = nn.Linear(9216, 128)
self.fc2 = nn.Linear(128, 10)
def forward(self, x):
    x = self.conv1(x)
    x = F.relu(x)
    x = self.conv2(x)
    x = F.max_pool2d(x, 2)
    x = self.dropout1(x)
    x = torch.flatten(x, 1)
    x = self.fc1(x)
    x = F.relu(x)
    x = self.dropout2(x)
    x = self.fc2(x)
    output = F.log_softmax(x, dim=1)
    return output

The main function as below
import Net1
net = Net1.Net()
optimizer = torch.optim.Adam(net.parameters(), lr=0.05)
the two problems come from the above code
(1) I want to use the Adadelta as the optimizer, but torch.optim.Adadelta cannot find
(2) Despite I use Adam as the optimizer, but the net.parameters() cannot found too.
I works in pyCharm, so I install torch in the pyCharm environment, I thought that maybe because the pyCharm cannot install the torch code completely, so I use the pip3 method to install the torch. And the problems is still here.
Please help me!  Thank you very very much.