title: RuntimeError: "reflection_pad2d" not implemented for 'Byte'
body: <pre class="lang-py prettyprint-override"><code>padding = (2, 2, 2, 2)
  img = torch.nn.functional.pad(img, padding, mode='reflect')
  out = torch.nn.functional.conv2d(img, kernel, groups=img.shape[1])
  </code></pre>
  <p>Here is the complete Error:</p>
  <pre><code>  File &quot;/home/amir/PycharmProjects/LPTN/loadPretrainedModel.py&quot;, line 57, in conv_gauss
      img = torch.nn.functional.pad(img, padding, mode='reflect')
    File &quot;/usr/local/lib/python3.8/dist-packages/torch/nn/functional.py&quot;, line 4017, in _pad
      return torch._C._nn.reflection_pad2d(input, pad)
  RuntimeError: &quot;reflection_pad2d&quot; not implemented for 'Byte'
  </code></pre>
  <p>What do you think is the problem? I can't figure it out. Thanks in advance.</p>