RNNencdec.cnna 365 Bytes
Newer Older
Christian Fuß's avatar
Christian Fuß committed
1
2
3
4
5
6
7
8
9
10
11
12
architecture RNNencdec(max_length=50, vocabulary_size=30000, hidden_size=1000){
   def input Q(0:1)^{vocabulary_size} source
   def output Q(0:1)^{vocabulary_size} target

   unroll BeamSearchStart(max_length=max_length) {
       source ->
       FullyConnected(units=17) ->
       Softmax() ->
       FullyConnected(units=vocabulary_size) ->
       target
   };
 }