Skip to content

Fix ReverseDiff's value_and_gradient! #387

Open
@gdalle

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

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