title: What are the most idiomatic ways to combine tensors in torch?
body: <p>I'm confronted with concatenating three tensors together so that 3 px1 tensors become one 3px1 tensor. </p>
  
  <p>The most succinct I could come up with was:</p>
  
  <pre><code>torch.Tensor{v2:totable(),v4:totable(),v6:totable()}:view(3*p,1)
  </code></pre>
  
  <p>Are there ways to do this without converting to tables and back to tensors? It seems like there should be a generic way of concatenating tensors along some specified dimension assuming they have compatible shapes.</p>
  
  <p>I can see how it would be possible to write such a function, does one not exist?</p>