Skip to content

Commit

Permalink
move jacobian test
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Mar 8, 2019
1 parent 9298a21 commit ceba6f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,15 @@ Random.seed!(0)

include("tracker.jl")

using Tracker: jacobian

@testset "Jacobian" begin
A = param(randn(2,2))
x = randn(2)
m(x) = A*x
y = m(x)
J = jacobian(m,x)
@test J A.data
end

end

0 comments on commit ceba6f4

Please sign in to comment.