Skip to content

Commit 41033f4

Browse files
committed
don't rewrap a forwarddiff tag
1 parent d6fae4e commit 41033f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/highlevel/forward_mode.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function ForwardDiff.checktag(::Type{<:ForwardDiff.Tag{<:SparseDiffToolsTag, <:T
1616
end
1717

1818
__standard_tag(::Nothing, x) = ForwardDiff.Tag(SparseDiffToolsTag(), eltype(x))
19+
__standard_tag(tag::ForwardDiff.Tag, _) = tag
1920
__standard_tag(tag, x) = ForwardDiff.Tag(tag, eltype(x))
2021

2122
function sparse_jacobian_cache(ad::Union{AutoSparseForwardDiff, AutoForwardDiff},

0 commit comments

Comments
 (0)