Skip to content

Instantly share code, notes, and snippets.

@omarsar
Created August 13, 2018 07:09
Show Gist options
  • Save omarsar/7b734a0fca8d059ff62949e1d6c57df9 to your computer and use it in GitHub Desktop.
Save omarsar/7b734a0fca8d059ff62949e1d6c57df9 to your computer and use it in GitHub Desktop.
X = torch.tensor(([2, 9], [1, 5], [3, 6]), dtype=torch.float) # 3 X 2 tensor
y = torch.tensor(([92], [100], [89]), dtype=torch.float) # 3 X 1 tensor
xPredicted = torch.tensor(([4, 8]), dtype=torch.float) # 1 X 2 tensor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment