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
I am porting a renderer to use Enzyme, but Enzyme outputs the gradients to be 0 on CUDA (it is correct on CPU). I think there is something that Enzyme consider as non-differentiable but actually differentiable. I think one way to diagnose this issue could be to verify if each intermediate variables are receiving gradients. Is there a simple method to accomplish this, except for returning all of them from the function?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am porting a renderer to use Enzyme, but Enzyme outputs the gradients to be 0 on CUDA (it is correct on CPU). I think there is something that Enzyme consider as non-differentiable but actually differentiable. I think one way to diagnose this issue could be to verify if each intermediate variables are receiving gradients. Is there a simple method to accomplish this, except for returning all of them from the function?
Beta Was this translation helpful? Give feedback.
All reactions