Number of Bias Parameters

How many bias parameters will object model have?

class linear_regression(nn.Module):

def __init__(self,input_size,output_size):

    super(linear_regression,self).__init__()

    self.linear=nn.Linear(input_size,output_size)

def forward(self,x):

    yhat=self.linear(x)

    return yhat

model=linear_regression(3,10)

whats the answer? i put the answer = 1

Also this questions sounds like it’s coming from an assignment and is similar to your other post.
I’m sure we can help with any PyTorch-related questions, but in case I’m right and you are indeed trying to get answers for some kind of quiz, I’m hesitant to help solving it for you.
Having worked at a University before, I would be quite disappointed if our students would ask for direct support for these kind of questions.