title: How does pytorch broadcasting work?
body: <pre><code>torch.add(torch.ones(4,1), torch.randn(4))
  </code></pre>
  
  <p>produces a Tensor with size: <code>torch.Size([4,4])</code>.</p>
  
  <p>Can someone provide a logic behind this?</p>