Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored Jul 28, 2024
1 parent 9ffad86 commit 87c2a39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function _hvp_tag(f::F, backend::AutoForwardDiff, x) where {F}
end

function DI.prepare_hvp(
f::F, backend::SecondOrder{<:AutoForwardDiff,<:AutoReverseDiff}, x
f::F, backend::SecondOrder{<:AutoForwardDiff,<:AutoReverseDiff}, x, dx
) where {F}
T = _hvp_tag(f, outer(backend), x)
xdual = DIForwardDiffExt.make_dual(T, x, dx)
Expand Down
11 changes: 0 additions & 11 deletions DifferentiationInterface/src/second_order/hvp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,6 @@ function (ig::InnerGradient)(x)
return gradient(f, backend, x)
end

struct InnerPreparedGradient{F,B,E}
f::F
backend::B
extras::E
end

function (ipg::InnerPreparedGradient)(x)
@compat (; f, backend, extras) = ig
return gradient(f, backend, x, extras)
end

struct InnerPushforwardFixedSeed{F,B,DX}
f::F
backend::B
Expand Down

0 comments on commit 87c2a39

Please sign in to comment.