If the model has 10 features, and two hidden layers of 20 nodes and 30 nodes, the network is defined as ___________.
Please choose the correct option from below list
(1)torch.nn.Sequential(nn.Linear(20,10), nn.Linear(30,20))
(2)torch.nn.Sequential(nn.Linear(10,20), nn.Linear(20,30))
(3)torch.nn.Sequential(nn.Linear(10,30,20))
(4)torch.nn.Sequential(nn.Linear(10,20,30))
Answer:-(2)torch.nn.Sequential(nn.Linear(10,20), nn.Linear(20,30)) | |