 }
 
 SentBatch generateBatch(size_t batchSize) {
-  size_t length = 5; // rand() % 40 + 10;
+  size_t length = rand() % 40 + 10;
   return SentBatch(length, WordBatch(batchSize));
 }
 

               const SentBatch& srcSentenceBatch) {
  g->clear();

  int dimSrcVoc = 30000;
  int dimSrcEmb = 128;
  int dimEncState = 1024;
  int dimBatch = 1;



  auto encStartState = name(g->zeros(shape={dimBatch, dimEncState}), "start");

  auto encForward = buildEncoderGRU3("encoder");
  auto statesForward = encForward.apply(inputs.begin(), inputs.end(),
                                        encStartState);

  auto encBackward = buildEncoderGRU3("encoder_r");
  auto statesBackward = encBackward.apply(inputs.rbegin(), inputs.rend(),
                                          encStartState);

