I’ve tried to reproduce Shiyu’s error, but I cant.
Can one of you give me a repro:
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]