human
I am working on the file "Sessions/Session14/Day2/DeeplearningSolutions.ipynb".
The first task is:
The next cell will outline how one can make a MLP with pytorch. 
Problem 3a Talk to a partner about how this code works, line by line. Add another hidden layer which is the same size as the first hidden layer.
Can you write Python code for it?

Give me a the Python code you requested?
assistant
#Here is the Python code you requested.

class MLP(torch.nn.Module):
      # this defines the model
        def __init__(self, input_size, hidden_size):
            super(MLP, self).__init__()
            print(input_size,hidden_size)
            self.input_size = input_size
            self.hidden_size  = hidden_size
            self.hiddenlayer = torch.nn.Linear(self.input_size, self.hidden_size)
            self.outputlayer = torch.nn.Linear(self.hidden_size, 2)
            self.sigmoid = torch.nn.Sigmoid()
            self.softmax = torch.nn.Softmax()
        def forward(self, x):
            layer1 = self.hiddenlayer(x)
            activation = self.sigmoid(layer1)
            layer2 = self.outputlayer(activation)
            activation2 = self.sigmoid(layer1)
            layer3 = self.outputlayer(activation2)
            output = self.softmax(layer3)
            return output