Skip to content

Commit

Permalink
Convert to tuple if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Jan 10, 2022
1 parent 8b513d0 commit bc3c321
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/defaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ FDMBackend2() = FDMBackend2(central_fdm(5, 1))
const fdm_backend2 = FDMBackend2()
AD.@primitive function pushforward_function(ab::FDMBackend2, f, xs...)
return function (vs)
FDM.jvp(ab.alg, f, tuple.(xs, vs)...)
ws = FDM.jvp(ab.alg, f, tuple.(xs, vs)...)
return length(xs) == 1 ? (ws,) : ws
end
end

Expand Down

0 comments on commit bc3c321

Please sign in to comment.