Skip to content

Commit

Permalink
don't rewrap a forwarddiff tag
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 1, 2023
1 parent d6fae4e commit 41033f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/highlevel/forward_mode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function ForwardDiff.checktag(::Type{<:ForwardDiff.Tag{<:SparseDiffToolsTag, <:T
end

__standard_tag(::Nothing, x) = ForwardDiff.Tag(SparseDiffToolsTag(), eltype(x))
__standard_tag(tag::ForwardDiff.Tag, _) = tag
__standard_tag(tag, x) = ForwardDiff.Tag(tag, eltype(x))

Check warning on line 20 in src/highlevel/forward_mode.jl

View check run for this annotation

Codecov / codecov/patch

src/highlevel/forward_mode.jl#L19-L20

Added lines #L19 - L20 were not covered by tests

function sparse_jacobian_cache(ad::Union{AutoSparseForwardDiff, AutoForwardDiff},
Expand Down

0 comments on commit 41033f4

Please sign in to comment.