Skip to content

Commit 33458d4

Browse files
Update src/config.jl
1 parent fa2e243 commit 33458d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ This constructor does not store/modify `y` or `x`.
141141
function DerivativeConfig(f::F,
142142
y::AbstractArray{Y},
143143
x::X,
144-
tag::T) where {F,X<:Real,Y<:Real,T}
144+
tag::T = Tag(f, X)) where {F,X<:Real,Y<:Real,T}
145145
duals = similar(y, Dual{T,Y,1})
146146
return DerivativeConfig{T,typeof(duals)}(duals)
147147
end

0 commit comments

Comments
 (0)