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
if shared_param.grad is not None:
return
shared_param._grad = param.grad
in this code, if there's no if shared_param.grad is not None: return shared_param._grad will be assigned each time? maybe just some performance loss?
maybe a stupid question, but i'm curious, thanks in advance.
The text was updated successfully, but these errors were encountered:
in this code, if there's no
if shared_param.grad is not None: return
shared_param._grad will be assigned each time? maybe just some performance loss?maybe a stupid question, but i'm curious, thanks in advance.
The text was updated successfully, but these errors were encountered: