Now it is working, but doesn’t do anything:
The code I wrote in a file:
import torch

q =torch.randn(10)
print "1 ",q
torch.add(q, 0.1, q)
print "2 ",q
exit()

The output I get:
1
1.6000
-0.5714
-2.1857
0.9774
2.3266
-2.2662
-1.2868
-0.7741
-0.3532
-0.0593
[torch.FloatTensor of size 10]
2
1.6000
-0.5714
-2.1857
0.9774
2.3266
-2.2662
-1.2868
-0.7741
-0.3532
-0.0593
[torch.FloatTensor of size 10]