We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454f312 commit 11c01c5Copy full SHA for 11c01c5
1 file changed
DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/utils.jl
@@ -2,7 +2,7 @@ choose_chunk(::AutoForwardDiff{nothing}, x) = Chunk(x)
2
choose_chunk(::AutoForwardDiff{C}, x) where {C} = Chunk{min(length(x), C)}()
3
4
tag_type(f, ::AutoForwardDiff{C,T}, x) where {C,T} = T
5
-tag_type(f, ::AutoForwardDiff{C,Nothing}, x) where {C} = Tag{typeof(f),eltype(x)}
+tag_type(f, ::AutoForwardDiff{C,Nothing}, x) where {C} = typeof(Tag(f, eltype(x)))
6
7
make_dual_similar(::Type{T}, x::Number, dx::Number) where {T} = Dual{T}(x, dx)
8
make_dual_similar(::Type{T}, x, dx) where {T} = similar(x, Dual{T,eltype(x),1})
0 commit comments