Skip to content

Commit

Permalink
fix: replace use of undocumented AutoForwardDiff constructor (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored Nov 19, 2024
1 parent 34e0cfc commit 1d2b262
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using PolyesterForwardDiff.ForwardDiff: Chunk
using PolyesterForwardDiff.ForwardDiff.DiffResults: DiffResults

function single_threaded(backend::AutoPolyesterForwardDiff{chunksize,T}) where {chunksize,T}
return AutoForwardDiff{chunksize,T}(backend.tag)
return AutoForwardDiff(; chunksize, tag=backend.tag)
end

DI.check_available(::AutoPolyesterForwardDiff) = true
Expand Down

0 comments on commit 1d2b262

Please sign in to comment.