ForwardDiff.jl icon indicating copy to clipboard operation
ForwardDiff.jl copied to clipboard

ForwardDiff.jacobian does not respect Array dimensionality

Open cossio opened this issue 7 years ago • 0 comments

f(x) = sum(x; dims=1)
ForwardDiff.jacobian(f, [1. 2.; 3. 4.])  # returns 2x4 Array

Shouldn't it return a 1x2x2x2 Array?

cossio avatar Oct 11 '18 12:10 cossio