hardStudy question · answer published in Deep Learning interview questions, so no pointsdeep-learningmathsbackpropagation
Gradient of a linear layer's weights
A layer computes y = Wx with x of size 3 and y of size 2, so W is 2 × 3. Given the upstream gradient δ = ∂L/∂y (size 2), what is ∂L/∂W?
Discussion 0
Join free to post in the discussion.
Related questions
- Parameters in nn.Linear(10, 5)Machine Learning Engineer
- Why sigmoid slows deep trainingMachine Learning Engineer
- Range of tanhMachine Learning Engineer
- Cross-entropy loss by handMachine Learning Engineer
- Telling autograd to track a tensorMachine Learning Engineer
- Why wrap inference in no_gradMachine Learning Engineer
- Logging loss without leaking memoryMachine Learning Engineer
- Feeding a single image to a CNNMachine Learning Engineer