Hi,
I’m reading the pytorch source code,in sgd.py 1 has this line
p.data.add_(-group['lr'], d_p)

I think this code means p=p-lr*d_p   right? So my question is why add_() above can achieve lr*d_p, the multiple operation.
Thanks