From 3b7b780d398bef91f2e793e2293f140d8c3b9241 Mon Sep 17 00:00:00 2001 From: dsweber2 Date: Tue, 8 Oct 2019 23:04:31 -0700 Subject: [PATCH] super simple test --- test/layers/basic.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/layers/basic.jl b/test/layers/basic.jl index cbe250fc..4edfecc7 100644 --- a/test/layers/basic.jl +++ b/test/layers/basic.jl @@ -19,6 +19,12 @@ import Flux: activations # numeric test should be put into testset of corresponding layer end + @testset "Activations" begin + c = Chain(Dense(3,5,relu), Dense(5,1,relu)) + X = Float32.([1.0; 1.0; 1.0]) + @test_nowarn gradient(()->Flux.activations(c, X)[2][1], params(c)) + end + @testset "Dense" begin @test length(Dense(10, 5)(randn(10))) == 5 @test_throws DimensionMismatch Dense(10, 5)(randn(1))