Deep Learning, Framework, Neural Networks, Heartbeat, Machine Learning.
Here we fit a 2-layer net using PyTorch Tensors: As you can see, I first create random tensors for data and weights. Then I compute predictions and loss during forward pass, and compute gradients manually during backward pass. I also add gradient descent step on each weight. Finally, I train the