title: Convert PyTorch tensor to python list
body: <p>How do I convert a PyTorch <code>Tensor</code> into a python <code>list</code>?</p>
  <p>I want to convert a tensor of size <code>[1, 2048, 1, 1]</code> into a list of 2048 elements. My tensor has floating point values. Is there a solution which also works with other data types such as int?</p>