Skip to content

Perturbation Confusion issue #443

Open

Description

@MikeInnes
D(f, x) = ForwardDiff.derivative(f, x)

D(1) do x
  f(y) = (x = x*y)
  D(f, 1)
  D(f, 1)
end # => 2

The correct answer is 1. This is essentially the same as YingboMa/ForwardDiff2.jl#37.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions