RNNencdec.cnna 362 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
   def input Q(0:1)^{vocabulary_size} source
3
   def output Q(0:1)^{vocabulary_size} target[3]
Christian Fuß's avatar
Christian Fuß committed
4

5
6
7
8
    source -> target[0];

   timed <t=2> BeamSearchStart(max_length=5) {
       target[t-1] ->
Christian Fuß's avatar
Christian Fuß committed
9
       FullyConnected(units=vocabulary_size) ->
Christian Fuß's avatar
Christian Fuß committed
10
       Softmax() ->
11
       target[t]
Christian Fuß's avatar
Christian Fuß committed
12
13
   };
 }