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

once_differentiable #137

Open
Open

Description

@aooating

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!

Activity

  1. aooating commented on Mar 1, 2023

    @aooating
    Author

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions