Exercise

Accessing the model parameters

A PyTorch model created with the nn.Sequential() is a module that contains the different layers of your network. Recall that each layer parameter can be accessed by indexing the created model directly. In this exercise, you will practice accessing the parameters of different linear layers of a neural network. You won't be accessing the sigmoid.

Instructions

100 XP
  • Access the weight parameter of the first linear layer.
  • Access the bias parameter of the second linear layer.