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
A potentially vague question/issue regarding how Enzyme works. In order to run the Oceananigans barotropic gyre model, we need to initialize this structure
which contains all the needed information about the model that we're running, and so needs to be given to time_step! to update the velocity fields and so on. The function that I call autodiff on currently takes this as input, and so we need to wrap it in Duplicated, but the vast majority of the entries in model are not something we want to take the derivative with respect to. Is there a way to tell Enzyme to take this into account?
Another weird thing is that the choices (such as ExplicitFreeSurface()) will impact the derivative, so we do still want Enzyme to go through those functions, meaning they shouldn't be ignored in their entirety (if any of that makes sense). I guess I'm a little lost about how best to set this up to try and make the MWE of Enzyme and Oceananigans not getting along, but I think understanding how to deal with this structure is at least a start.
The text was updated successfully, but these errors were encountered:
A potentially vague question/issue regarding how Enzyme works. In order to run the Oceananigans barotropic gyre model, we need to initialize this structure
which contains all the needed information about the model that we're running, and so needs to be given to
time_step!
to update the velocity fields and so on. The function that I callautodiff
on currently takes this as input, and so we need to wrap it in Duplicated, but the vast majority of the entries inmodel
are not something we want to take the derivative with respect to. Is there a way to tell Enzyme to take this into account?Another weird thing is that the choices (such as
ExplicitFreeSurface()
) will impact the derivative, so we do still want Enzyme to go through those functions, meaning they shouldn't be ignored in their entirety (if any of that makes sense). I guess I'm a little lost about how best to set this up to try and make the MWE of Enzyme and Oceananigans not getting along, but I think understanding how to deal with this structure is at least a start.The text was updated successfully, but these errors were encountered: