We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2bc2b1 commit cd80e68Copy full SHA for cd80e68
src/gradients.jl
@@ -54,7 +54,7 @@ function GradientCache(
54
c2 :: Union{Void,AbstractArray{<:Number}},
55
fx :: Union{Void,<:Number,AbstractArray{<:Number}} = nothing,
56
fdtype :: Type{T1} = Val{:central},
57
- returntype :: Type{T2} = eltype(df),
+ returntype :: Type{T2} = eltype(c1),
58
inplace :: Type{Val{T3}} = Val{true}) where {T1,T2,T3}
59
60
if fdtype!=Val{:forward} && typeof(fx)!=Void
0 commit comments