pytorch acess of weights and biases from a spcecific neuron
e.g:

input_size = 784
hidden_sizes = [128, 64]
output_size = 10

# Build a feed-forward network
model = nn.Sequential(nn.Linear(input_size, hidden_sizes[0]),
                      nn.ReLU(),
                      nn.Linear(hidden_sizes[0], hidden_sizes[1]),
                      nn.ReLU(),
                      nn.Linear(hidden_sizes[1], output_size),
                      nn.Softmax(dim=1))


i want to acess all the weights and the bias of the N-TH neuron in a specific layer. I know that model.layer[1].weight gives the acess to all weights in a layer, but i also want to know of what neuron this weight is. 

Assume you have n neurons in the layer,
The weight should be in order from neuron[0] to neuron[n].
For example to access weights of a fully connected layer

Parameter containing:
tensor([[-7.3584e-03, -2.3753e-02, -2.2565e-02,  ...,  2.1965e-02,
      1.0699e-02, -2.8968e-02], #1st neuron weights
    [ 2.2930e-02, -2.4317e-02,  2.9939e-02,  ...,  1.1536e-02,
      1.9830e-02, -1.4294e-02], #2nd neuron weights
    [ 3.0891e-02,  2.5781e-02, -2.5248e-02,  ..., -1.5813e-02,
      6.1708e-03, -1.8673e-02], #3rd neuron weights
    ...,
    [-1.2596e-03, -1.2320e-05,  1.9106e-02,  ...,  2.1987e-02,
     -3.3817e-02, -9.4880e-03], #nth neuron weights
    [ 1.4234e-02,  2.1246e-02, -1.0369e-02,  ..., -1.2366e-02,
     -4.7024e-04, -2.5259e-02], #(n+1)th neuron weights
    [ 7.5356e-03,  3.4400e-02, -1.0673e-02,  ...,  2.8880e-02,
     -1.0365e-02, -1.2916e-02] #(n+2)th neuron weights], requires_grad=True)


For instance

[-7.3584e-03, -2.3753e-02, -2.2565e-02,  ...,  2.1965e-02,
          1.0699e-02, -2.8968e-02] will be all the weights of the 1st neuron

-7.3584e-03 is the weight to the 1st neuron in the next layer

-2.3753e-02 is the weight to the 2nd neuron in the next layer

-2.2565e-02 is the weight to the 3rd neuron in the next layer

[ 2.2930e-02, -2.4317e-02,  2.9939e-02,  ...,  1.1536e-02,
          1.9830e-02, -1.4294e-02] will be all the weights of the 2nd neuron

2.2930e-02 is the weight to the 1st neuron in the next layer

-2.4317e-02 is the weight to the 2nd neuron in the next layer

-2.2565e-02 is the weight to the 3rd neuron in the next layer
