From f7f8124a789df850300db924d2573ad21e8aa526 Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Thu, 27 Apr 2017 17:27:46 +0100 Subject: [PATCH] rm ambiguous function --- test/recurrent.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/recurrent.jl b/test/recurrent.jl index 42627b9b..3f04d6c4 100644 --- a/test/recurrent.jl +++ b/test/recurrent.jl @@ -1,5 +1,3 @@ -using Flux: stateless - function apply(model, xs, state) ys = similar(xs, 0) for x in xs @@ -12,7 +10,7 @@ end @testset "RNN unrolling" begin r = Recurrent(10, 5) xs = [rand(1, 10) for _ = 1:3] - _, ys = apply(stateless(unroll1(r)), xs, (r.y.x,)) + _, ys = apply(unroll1(r).model, xs, (r.y.x,)) @test ys[1] == tanh(xs[1] * r.Wxy.x .+ r.y.x * r.Wyy.x .+ r.by.x) ru = unroll(r, 3) ru(batchone(Seq(squeeze.(xs))))[1] == squeeze.(ys)