Skip to content

Commit 1d01a68

Browse files
fix tests
1 parent f30c3ac commit 1d01a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/adjoints.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ using Zygote
1919
y = SymbolicUtils.Code.create_array(A, T, Val(u), Val(dim), elems...)
2020
@test y ==
2121

22-
gs = pb()
22+
gs = pb(ones(T, length(elems)))
2323
@test length(gs[1]) == length(elems)
24-
for i = 1:prod(dim)
24+
for i = 1:(prod(dim)-1)
2525
@test gs[1][i] == one(eltype(ŷ))
2626
end
2727
end

0 commit comments

Comments
 (0)