title: Concatenation layer in tensorflow
body: <p>Given 2 3D tensors <code>t1 = [?, 1, 1, 1, 2048]</code> and <code>t2 = [?, 3, 1, 1, 256]</code> seen in the image, how would these be concatenated? Currently, I am using: </p>
  
  <pre><code>tf.concat([t1, t2], 4)
  </code></pre>
  
  <p>However, given that my architecture has a large amount of layers with many concatenations, I eventually have a tensor that is too large (in terms of channels/features) to initialize. <strong>Is this the correct way to implement a concatenation layer?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/IEJhv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IEJhv.png" alt="enter image description here"></a></p>