Skip to content

Commit

Permalink
fix: handle AD materialization
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 25, 2024
1 parent 34602e1 commit 9b0f8ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/generalized_first_order.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ function SciMLBase.__init(
linesearch_ad = alg.forward_ad === nothing ?
(alg.reverse_ad === nothing ? alg.jacobian_ad :
alg.reverse_ad) : alg.forward_ad
linesearch_ad = get_concrete_forward_ad(
linesearch_ad, prob, False; check_forward_mode = false)
linesearch_cache = init(
prob, alg.linesearch, fu, u; stats, autodiff = linesearch_ad, kwargs...)
GB = :LineSearch
Expand Down

0 comments on commit 9b0f8ae

Please sign in to comment.