RNNencdec.cnna 323 Bytes
Newer Older
Christian Fuß's avatar
Christian Fuß committed
1
architecture RNNencdec(max_length=5, vocabulary_size=30000, hidden_size=1000){
Christian Fuß's avatar
Christian Fuß committed
2
3
4
   def input Q(0:1)^{vocabulary_size} source
   def output Q(0:1)^{vocabulary_size} target

Christian Fuß's avatar
Christian Fuß committed
5
   timed <t> BeamSearchStart(max_length=5) {
Christian Fuß's avatar
Christian Fuß committed
6
7
       source ->
       FullyConnected(units=vocabulary_size) ->
Christian Fuß's avatar
Christian Fuß committed
8
       Softmax() ->
Christian Fuß's avatar
Christian Fuß committed
9
10
11
       target
   };
 }