Skip to content

Instantly share code, notes, and snippets.

@vaibhavkumar049
Created May 23, 2019 20:40
Show Gist options
  • Save vaibhavkumar049/26d1415d8fb915f79bba898221b8b64f to your computer and use it in GitHub Desktop.
Save vaibhavkumar049/26d1415d8fb915f79bba898221b8b64f to your computer and use it in GitHub Desktop.
x = torch.ones(3, 2)
print(x)
x = torch.zeros(3, 2)
print(x)
x = torch.rand(3, 2)
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment