From 7ba176f59a0d2c1a01b21ca841c3e3d5701a2e14 Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Fri, 8 Mar 2019 13:09:46 +0000 Subject: [PATCH] move jacobian test to Tracker --- test/utils.jl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/test/utils.jl b/test/utils.jl index 7bcf72c3..3e76f04c 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -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 @@ -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)