Skip to content

Commit cd80e68

Browse files
Update gradients.jl
1 parent c2bc2b1 commit cd80e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gradients.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function GradientCache(
5454
c2 :: Union{Void,AbstractArray{<:Number}},
5555
fx :: Union{Void,<:Number,AbstractArray{<:Number}} = nothing,
5656
fdtype :: Type{T1} = Val{:central},
57-
returntype :: Type{T2} = eltype(df),
57+
returntype :: Type{T2} = eltype(c1),
5858
inplace :: Type{Val{T3}} = Val{true}) where {T1,T2,T3}
5959

6060
if fdtype!=Val{:forward} && typeof(fx)!=Void

0 commit comments

Comments
 (0)