From e51a55381dbc1f4c45ad05cff3457c18d111fe3e Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Wed, 3 May 2017 11:46:35 -0400 Subject: [PATCH] better broadcast syntax --- test/recurrent.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/recurrent.jl b/test/recurrent.jl index e335079cc9..0352e4ddcf 100644 --- a/test/recurrent.jl +++ b/test/recurrent.jl @@ -13,5 +13,5 @@ end _, 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((x->squeeze(x,1)).(xs))))[1] == (x->squeeze(x,1)).(ys) + ru(batchone(Seq(squeeze.(xs,1))))[1] == squeeze.(ys,1) end