Skip to content

Commit ccee0a4

Browse files
Merge pull request #159 from avik-pal/ap/patch
Fix dims
2 parents dbbc7f7 + 5ee0d6a commit ccee0a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/differentiation/vecjac_products_zygote.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function auto_vecjac!(du, f, x, v, cache1 = nothing, cache2 = nothing)
22
!hasmethod(f, (typeof(x),)) &&
33
error("For inplace function use autodiff = false")
4-
du .= auto_vecjac(f, x, v)
4+
du .= reshape(auto_vecjac(f, x, v), size(du))
55
end
66

77
function auto_vecjac(f, x, v)

0 commit comments

Comments
 (0)