Skip to content

Instantly share code, notes, and snippets.

@monk1337
Created June 7, 2018 15:34
Show Gist options
  • Save monk1337/f51ed89852ac06a3507d52c075970127 to your computer and use it in GitHub Desktop.
Save monk1337/f51ed89852ac06a3507d52c075970127 to your computer and use it in GitHub Desktop.
tensor=torch.Tensor(4,3)
print(tensor)
# output:
# tensor([[ 0.0000e+00, 1.0842e-19, 6.0390e+35],
# [ 2.8586e-42, 4.2039e-45, 0.0000e+00],
# [ 0.0000e+00, 0.0000e+00, 0.0000e+00],
# [ 0.0000e+00, 0.0000e+00, 2.7551e-40]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment