Skip to content

Instantly share code, notes, and snippets.

@omarsar
Created December 22, 2019 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omarsar/687ca580f850029eb0ae6e0d1ac22534 to your computer and use it in GitHub Desktop.
Save omarsar/687ca580f850029eb0ae6e0d1ac22534 to your computer and use it in GitHub Desktop.
## our data in tensor form
x = torch.tensor([[-1.0], [0.0], [1.0], [2.0], [3.0], [4.0]], dtype=torch.float)
y = torch.tensor([[-3.0], [-1.0], [1.0], [3.0], [5.0], [7.0]], dtype=torch.float)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment