Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

once_differentiable #137

Open
aooating opened this issue Mar 1, 2023 · 1 comment
Open

once_differentiable #137

aooating opened this issue Mar 1, 2023 · 1 comment

Comments

@aooating
Copy link

aooating commented Mar 1, 2023

when running the code: diffopt.step(buff_losses)
the following problem occurs: RuntimeError: trying to differentiate twice a function that was markedwith @once_differentiable
but when setting track_higher_grads: bool = False, it runs correctly.
I want to know why this issue occurs. Thanks a lot for answering my question!

@aooating
Copy link
Author

aooating commented Mar 1, 2023

when running the code: diffopt.step(buff_losses) the following problem occurs: RuntimeError: trying to differentiate twice a function that was markedwith @once_differentiable but when setting track_higher_grads: bool = False, it runs correctly. I want to know why this issue occurs. Thanks a lot for answering my question!

does this setting have any effect on the final result?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant