mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Merge pull request #39 from beneyal/01-pytorch-workflow-review
Update notebook 01_pytorch_workflow
This commit is contained in:
2 files changed
+364
-359
No files matched your search
+359
-359
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,5 @@
|
||||
# Notes
|
||||
|
||||
1. In `LinearRegressionModel`, the `requires_grad` and `dtype` parameters to `torch.randn` are redundant, as `nn.Parameter` takes care of setting them.
|
||||
|
||||
2. Again in `LinearRegressionModel`, the `forward` function calculates $w \cdot x + b$, but in the previous notebook, you introduced the linear function in its general form, $x \cdot A^{T} + b$. Since this example is using vectors, it doesn't matter, but it might be worth to note this difference.
|
||||
Reference in new issue
Block a user