Skip to content

Fix ReverseDiff's value_and_gradient! #387

Description

@gdalle

As diagnosed in #386, the function value_and_gradient!(f, grad, ::AutoReverseDiff, x) returns wrong primal outputs y = f(x) due to JuliaDiff/ReverseDiff.jl#251. #386 fixes it, but at the cost of one extra function call. The long-term fix is something like JuliaDiff/ReverseDiff.jl#261

Activity

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

    backendRelated to one or more autodiff backends

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions