Skip to content

Commit

Permalink
better broadcast syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman committed May 3, 2017
1 parent 818ccf1 commit e51a553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/recurrent.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e51a553

Please sign in to comment.