title: How can I add an element to a PyTorch tensor along a certain dimension?
body: <p>I have a tensor <code>inps</code>, which has a size of <code>[64, 161, 1]</code> and I have some new data <code>d</code> which has a size of <code>[64, 161]</code>. How can I add <code>d</code> to <code>inps</code> such that the new size is <code>[64, 161, 2]</code>?</p>