From b511160ec42a563aa5d8847d1647adc249087067 Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Mon, 1 May 2017 17:49:43 +0100 Subject: [PATCH] multi test is redundant --- test/backend/mxnet.jl | 4 ---- test/backend/tensorflow.jl | 4 ---- test/basic.jl | 6 ------ test/runtests.jl | 9 --------- 4 files changed, 23 deletions(-) diff --git a/test/backend/mxnet.jl b/test/backend/mxnet.jl index a70ec7dd..3bd1927f 100644 --- a/test/backend/mxnet.jl +++ b/test/backend/mxnet.jl @@ -9,10 +9,6 @@ d = Affine(20, 10) dm = mxnet(d) @test d(xs) ≈ dm(xs) -m = Multi(20, 15) -mm = mxnet(m) -@test all(isapprox.(mm(xs, ys), m(xs, ys))) - @testset "Tuple I/O" begin @test mxnet(@net x -> (x,))([1,2,3]) == ([1,2,3],) @test mxnet(@net x -> x[1].*x[2])(([1,2,3],[4,5,6])) == [4,10,18] diff --git a/test/backend/tensorflow.jl b/test/backend/tensorflow.jl index 6d7780f9..f0f30cd0 100644 --- a/test/backend/tensorflow.jl +++ b/test/backend/tensorflow.jl @@ -9,10 +9,6 @@ d = Affine(20, 10) dt = tf(d) @test d(xs) ≈ dt(xs) -m = Multi(20, 15) -mm = tf(m) -@test all(isapprox.(mm(xs, ys), m(xs, ys))) - @testset "Tuple I/O" begin @test tf(@net x -> (identity(x),))([1,2,3]) == ([1,2,3],) @test tf(@net x -> x[1].*x[2])(([1,2,3],[4,5,6])) == [4,10,18] diff --git a/test/basic.jl b/test/basic.jl index 134e7ff7..708e8f83 100644 --- a/test/basic.jl +++ b/test/basic.jl @@ -32,10 +32,4 @@ let tlp = TLP(Affine(10, 21), Affine(20, 15)) @test e.trace[end-1].func == Symbol("Flux.Affine") end -let m = Multi(10, 15) - x, y = rand(1, 10), rand(1, 10) - @test all(isapprox.(m(x, y), (x * m.W.x, y * m.V.x))) - @test all(isapprox.(m(x, y), Flux.interpmodel(m, x, y))) -end - end diff --git a/test/runtests.jl b/test/runtests.jl index ac01c5ae..e52c33cd 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -22,15 +22,6 @@ end end end -@net type Multi - W - V - (x, y) -> (x*W, y*V) -end - -Multi(in::Integer, out::Integer) = - Multi(randn(in, out), randn(in, out)) - include("batching.jl") include("basic.jl") include("recurrent.jl")