title: How to rescale a pytorch tensor to interval [0,1]?
body: <p>I would like to rescale a pytorch tensor named <code>outmap</code> to the [0, 1] interval. I tried this:</p>
  <pre><code>outmap_min = torch.min(outmap, dim=1, keepdim=True)
  outmap_max = torch.max(outmap, dim=1, keepdim=True)
  outmap = (outmap - outmap_min) / (outmap_max - outmap_min)
  </code></pre>
  <p>And I am getting this error:
  <code>TypeError: unsupported operand type(s) for -: 'Tensor' and 'torch.return_types.min'</code></p>