Convert PyTorch tensor to python list : <p>How do I convert a PyTorch <code>Tensor</code> into a python list?</p>

<p>My current use case is to convert a tensor of size <code>[1, 2048, 1, 1]</code> into a list of 2048 elements.</p>

<p>My tensor has floating point values. Is there a solution which also accounts for int and possibly other data types?</p>
