title: What information does Pytorch nn.functional.interpolate use?
body: <p>I have a tensor <code>img</code> in PyTorch of size <code>bx2xhxw</code> and want to upsample it using <code>torch.nn.functional.interpolate</code>. But while interpolation I do not wish channel 1 to use information from channel 2. To do this should I do,</p>
  <pre><code>img2 = torch.rand(b,2,2*h,2*w) # create a random torch tensor.
  img2[:,0,:,:] = nn.functional.interpolate(img[:,0,:,:], [2*h,2*w], mode='bilinear', align_corners=True)
  img2[:,1,:,:] = nn.functional.interpolate(img[:,1,:,:], [2*h,2*w], mode='bilinear', align_corners=True)
  img=img2
  </code></pre>
  <p>or simply using</p>
  <pre><code>img = nn.functional.interpolate(img, [2*h,2*w], mode='bilinear', align_corners=True)
  </code></pre>
  <p>will solve my purpose.</p>