title: Appending tensors in Keras
body: <p>I have a for loop in my keras model as follow:</p>
  
  <pre><code> for t in range(Ty):
     ....
     ....
     ....
  
     out = Dense(num_dec_tokens, activation='softmax')(x)  # out.shape = (?, num_dec_tokens) 
  </code></pre>
  
  <p>Is there a way that I can append the tensor 'out' for Ty times (for example using a lambda layer) without using a list, i.e., not using: outputs = [], then ... outputs.append(out)?</p>
  
  <p>If so, is there a way that I can change the appended tensors into a shape of (?, Ty, num_dec_tokens) instead of (Ty, ?, num_dec_tokens)?</p>
  
  <p>Thanks...</p>