0 votes
in PyTorch by
If the model has 10 features, and two hidden layers of 20 nodes and 30 nodes, the network is defined as ___________.

Select the best option from below

a) torch.nn.Sequential(nn.Linear(20,10), nn.Linear(30,20))

b) torch.nn.Sequential(nn.Linear(10,20), nn.Linear(20,30))

c) torch.nn.Sequential(nn.Linear(10,30,20))

d) torch.nn.Sequential(nn.Linear(10,20,30))

1 Answer

0 votes
by
b) torch.nn.Sequential(nn.Linear(10,20), nn.Linear(20,30))

Related questions

0 votes
asked Jun 7, 2023 in Azure by Robin
0 votes
asked Jan 28, 2020 in Data Handling by rahuljain1
...