Created
October 26, 2021 16:59
-
-
Save b0noI/0c8de83b9d4b4c6a0e2e1fa1e9989028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
torch.manual_seed(2021) | |
w = torch.rand(1, requires_grad=True, dtype=torch.float64) | |
b = torch.rand(1, requires_grad=True, dtype=torch.float64) | |
def model(X): | |
return X * w + b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment