You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the last line, grad_penalty = ((grads.norm(2, dim=1) - 1)**2).mean() + interpolates[:,0,0,0].mean()*0, I wanted to know what additive term + interpolates[:,0,0,0].mean()*0 means. Since it's zero-multiplicated, I think it has actually no effect for code.
I'll be waiting for your answer
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
This is 'cal_grad_penalty' function in
/src/utils/losses.py
In the last line,
grad_penalty = ((grads.norm(2, dim=1) - 1)**2).mean() + interpolates[:,0,0,0].mean()*0
, I wanted to know what additive term+ interpolates[:,0,0,0].mean()*0
means. Since it's zero-multiplicated, I think it has actually no effect for code.I'll be waiting for your answer
Thank you!
The text was updated successfully, but these errors were encountered: