Torch.add() error
When I am using torch.add(), I have encountered the following error
Shiyu
apaszke
So - I will be using torch.mul, but the question is in place, and someone has to either implement the correct function or fix the documentation
YankuHorn
<SCODE>In [1]: import torch

In [2]: a=torch.randn(10)

In [3]: torch.add(a, 0.1, a)
Out[3]:

 0.9079
 1.1069
-1.5801
-0.3657
-0.6019
-0.5571
 0.5797
 0.2054
-0.9112
-0.7749
[torch.FloatTensor of size 10]

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

q =torch.randn(10)
print "1 ",q
torch.add(q, 0.1, q)
print "2 ",q
exit()
<ECODE>
YankuHorn
smth
OK, :embarrassed:, i was in a hurry - looks like it’s working now. Thanks.
YankuHorn