title: What does the gather function do in pytorch in layman terms?
body: <p>What does <a href="https://pytorch.org/docs/stable/torch.html#torch.gather" rel="noreferrer"><code>torch.gather</code></a> do?
  <a href="https://stackoverflow.com/a/46802039/3564468">This answer</a> is hard to understand.</p>