Using -1.0 instead of -1.
This commit is contained in:
parent
dcf2969640
commit
32ee7cb7f0
|
@ -32,6 +32,6 @@ class AdaCoor(torch.optim.Optimizer):
|
|||
gt_hat = (epsilon * p.grad.data).to(dtype=torch.float32, device=p.device)
|
||||
|
||||
denom = vt.sqrt().add_(group['epsilon']).to(dtype=p.dtype, device=p.device)
|
||||
p.data.addcdiv_(gt_hat, denom, value=-1)
|
||||
|
||||
p.data.addcdiv_(gt_hat, denom, value=-1.0)
|
||||
|
||||
return loss
|
Loading…
Reference in New Issue