title: How padding=zeros works in pytorch in functional.conv1d
body: <p>This following code below giving a output of shape <code>(1,1,3)</code> for the shape of <code>xodd</code> is <code>(1,1,2)</code>. The given kernel shape is<code>(112, 1, 1)</code>.</p>
  <pre><code>from torch.nn import functional as F
  output = F.conv1d(xodd, kernel, padding=zeros)
  </code></pre>
  <p>How the <code>padding=zeros</code> works?<br>
  And also, How can I write an equivalent code in tensorflow so that the output is as same as the above <code>output</code>?</p>