Created
October 25, 2017 12:09
-
-
Save dmesquita/219ce28100046a06b8224c2fdcae93c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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