Skip to content

Instantly share code, notes, and snippets.

@monk1337
Last active June 7, 2018 15:19
Show Gist options
  • Save monk1337/623040fb99b55caf6039c8c16f83028e to your computer and use it in GitHub Desktop.
Save monk1337/623040fb99b55caf6039c8c16f83028e to your computer and use it in GitHub Desktop.
import torch
print('one dim')
print(torch.rand(1))
# output:
# one dim
# tensor([ 0.3725])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment