Question 7
Consider the following PyTorch code that defines a small 3-layer fully connected neural network
import torchimport torch.nn as nn
class SmallNet(nn.Module): def __init__(self): super(SmallNet, self).__init__() self.fc1 = nn.Linear(4, 6) # input -> hidden1 self.fc2 = nn.Linear(6, 3) # hidden1 -> hidden2 self.fc3 = nn.Linear(3, 2) # hidden2 -> output def forward(self, x): x = torch.relu(self.fc1(x)) x = torch.relu(self.fc2(x)) x = self.fc3(x) return xHow many trainable parameters (weights + biases) does this network have in total?