Skip to content

Commit

Permalink
fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Aug 17, 2017
1 parent 574fccd commit b17eb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/translation.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Based on https://arxiv.org/abs/1409.0473

using Flux
using Flux: flip, stateless, broadcastto,
using Flux: Batch, Seq, param, flip, stateless, broadcastto,

Nbatch = 3 # Number of phrases to batch together
Nphrase = 5 # The length of (padded) phrases
Expand Down Expand Up @@ -45,6 +45,6 @@ model = @Chain(

model = mxnet(Flux.SeqModel(model, Nphrase))

xs = Batch(Seq(rand(Nalpha) for i = 1:Nphrase) for i = 1:Nbatch)
xs = Batch([Seq(rand(Nalpha) for i = 1:Nphrase) for i = 1:Nbatch])

model(xs)

0 comments on commit b17eb78

Please sign in to comment.