pytorch I don't know how to define multiple models
pytorch I don't know how to define multiple models Question: I want to use two different models in pytorch. Therefore, I executed the following code, but I cannot successfully run the second model. How can I do this? class Model(nn.Module): def __init__(self): super(Model, self).__init__() self.linear1 = nn.Linear(2, 64) self.linear2 = nn.Linear(64, 3) def forward(self, x): …