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 Oct 21, 2021 in Artificial Intelligence by DavidAnderson
+1 vote
asked Jul 16, 2020 in Other by RShastri
0 votes
asked May 21, 2019 in Mathematics by sheetalkhandelwal
...