Skip to content

Commit

Permalink
move jacobian test to Tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Mar 8, 2019
1 parent 18da68a commit 81549da
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/utils.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Flux
using Flux: throttle, jacobian, glorot_uniform, glorot_normal, stack, unstack
using Flux: throttle, glorot_uniform, glorot_normal, stack, unstack
using StatsBase: std
using Random
using Test
Expand Down Expand Up @@ -52,15 +52,6 @@ using Test
end
end

@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

@testset "Initialization" begin
# Set random seed so that these tests don't fail randomly
Random.seed!(0)
Expand Down

0 comments on commit 81549da

Please sign in to comment.