Skip to content

Instantly share code, notes, and snippets.

@dmesquita
Created October 25, 2017 12:09
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 dmesquita/219ce28100046a06b8224c2fdcae93c4 to your computer and use it in GitHub Desktop.
Save dmesquita/219ce28100046a06b8224c2fdcae93c4 to your computer and use it in GitHub Desktop.
import torch
x = torch.IntTensor([1,3,6])
y = torch.IntTensor([1,1,1])
result = x + y
print(result)
>>> 2
>>> 4
>>> 7
>>> [torch.IntTensor of size 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment