It seems you are calling the mentioned method as:
add_(Number alpha, Tensor other)

which is deprecated and should be changed to:
add_(Tensor other, *, Number alpha)

so in your case, you could use
exp_avg.mul_(beta1).add_(grad, alpha=1 - beta1)